drawinglayer: move getRandomColorRange to be private to GeoTexSvx
Change-Id: I9b306277a67b793ffd065d40446909ac59da0641 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90190 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
This commit is contained in:
parent
c2bbb2cb8c
commit
60b041f1a0
3 changed files with 9 additions and 10 deletions
|
@ -24,7 +24,6 @@
|
|||
|
||||
namespace drawinglayer
|
||||
{
|
||||
|
||||
BitmapEx convertToBitmapEx(
|
||||
const drawinglayer::primitive2d::Primitive2DContainer& rSeq,
|
||||
const geometry::ViewInformation2D& rViewInformation2D,
|
||||
|
@ -32,8 +31,6 @@ namespace drawinglayer
|
|||
sal_uInt32 nDiscreteHeight,
|
||||
sal_uInt32 nMaxQuadratPixels);
|
||||
|
||||
double getRandomColorRange();
|
||||
|
||||
} // end of namespace drawinglayer
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include <drawinglayer/geometry/viewinformation2d.hxx>
|
||||
#include <basegfx/polygon/b2dlinegeometry.hxx>
|
||||
#include <com/sun/star/drawing/LineCap.hpp>
|
||||
#include <comphelper/random.hxx>
|
||||
|
||||
#include <converters.hxx>
|
||||
|
||||
|
@ -196,11 +195,6 @@ namespace drawinglayer::primitive2d
|
|||
|
||||
namespace drawinglayer
|
||||
{
|
||||
double getRandomColorRange()
|
||||
{
|
||||
return comphelper::rng::uniform_real_distribution(0.0, nextafter(1.0, DBL_MAX));
|
||||
}
|
||||
|
||||
namespace primitive2d
|
||||
{
|
||||
void PolygonStrokePrimitive2D::create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& /*rViewInformation*/) const
|
||||
|
|
|
@ -26,10 +26,18 @@
|
|||
#include <basegfx/utils/gradienttools.hxx>
|
||||
#include <basegfx/matrix/b2dhommatrixtools.hxx>
|
||||
|
||||
#include <converters.hxx>
|
||||
#include <comphelper/random.hxx>
|
||||
|
||||
namespace drawinglayer::texture
|
||||
{
|
||||
namespace
|
||||
{
|
||||
double getRandomColorRange()
|
||||
{
|
||||
return comphelper::rng::uniform_real_distribution(0.0, nextafter(1.0, DBL_MAX));
|
||||
}
|
||||
}
|
||||
|
||||
GeoTexSvx::GeoTexSvx()
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue