summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/region.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-23 16:07:24 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-30 12:45:45 +0100
commitf0a8b5b81d6be08de6e0d504616a1f09830f7c38 (patch)
treec13bfc5e50c8e1852bf50531d6fcdff6e59e718c /vcl/source/gdi/region.cxx
parent2c8e9ed3cbe3aed5520ce8f5888dd083f8ee50c3 (diff)
move IsFuzzing to comphelper
and try something a bit more generic Change-Id: I1d8256576cd02f0a589df350ba7b53059dd586a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161250 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'vcl/source/gdi/region.cxx')
-rw-r--r--vcl/source/gdi/region.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx
index 6665b5c48d80..6298e3052bee 100644
--- a/vcl/source/gdi/region.cxx
+++ b/vcl/source/gdi/region.cxx
@@ -33,7 +33,7 @@
#include <basegfx/range/b2drange.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <tools/poly.hxx>
-#include <unotools/configmgr.hxx>
+#include <comphelper/configuration.hxx>
namespace
{
@@ -987,7 +987,7 @@ void vcl::Region::Intersect( const vcl::Region& rRegion )
return;
}
- static size_t gPointLimit = !utl::ConfigManager::IsFuzzing() ? SAL_MAX_SIZE : 8192;
+ static size_t gPointLimit = !comphelper::IsFuzzing() ? SAL_MAX_SIZE : 8192;
size_t nPointLimit(gPointLimit);
const basegfx::B2DPolyPolygon aClip(
basegfx::utils::clipPolyPolygonOnPolyPolygon(
@@ -1579,7 +1579,7 @@ SvStream& ReadRegion(SvStream& rIStrm, vcl::Region& rRegion)
if (nPolygons > 128)
{
SAL_WARN("vcl.gdi", "suspiciously high no of polygons in clip:" << nPolygons);
- if (utl::ConfigManager::IsFuzzing())
+ if (comphelper::IsFuzzing())
aNewPoly.Clear();
}
rRegion.mpPolyPolygon = aNewPoly;