summaryrefslogtreecommitdiff
path: root/include/basegfx
diff options
context:
space:
mode:
authorArmin Le Grand (allotropia) <armin.le.grand.extern@allotropia.de>2022-10-18 17:17:41 +0200
committerArmin Le Grand <Armin.Le.Grand@me.com>2022-10-18 19:38:53 +0200
commit02bd827f39c1e37baabeea1d83921a37450e8a97 (patch)
tree0d9c93bb25b7241525ae6ef631acd2e359bcdcf0 /include/basegfx
parentc74133420f6f9b4bc6b414b9c91d54cf8eb3f5af (diff)
Move access to SystemDependentDataHolder to Bitmap (2)
I was too positive thinking that SalBitmap would be fine, but it's locked to vcl. To be able to add system-dependent BitmapBuffering I move the access to Bitmap now. This is no functional change, but offers the same access as e.g. B2DPolygon/B2DPolyPolygon offer already. Also cleaned up usage/access to SystemDependentDataManager which removes quite some code in constructors and makes things easier in general. Change-Id: I2baa40a12479fab0fe66063a018f058c6b8f5597 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141507 Tested-by: Jenkins Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Diffstat (limited to 'include/basegfx')
-rw-r--r--include/basegfx/polygon/b2dpolygon.hxx4
-rw-r--r--include/basegfx/polygon/b2dpolypolygon.hxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/basegfx/polygon/b2dpolygon.hxx b/include/basegfx/polygon/b2dpolygon.hxx
index 0af041fe366a..435ebf419cba 100644
--- a/include/basegfx/polygon/b2dpolygon.hxx
+++ b/include/basegfx/polygon/b2dpolygon.hxx
@@ -237,9 +237,9 @@ namespace basegfx
}
template<class T, class... Args>
- std::shared_ptr<T> addOrReplaceSystemDependentData(SystemDependentDataManager& manager, Args&&... args) const
+ std::shared_ptr<T> addOrReplaceSystemDependentData(Args&&... args) const
{
- std::shared_ptr<T> r = std::make_shared<T>(manager, std::forward<Args>(args)...);
+ std::shared_ptr<T> r = std::make_shared<T>(std::forward<Args>(args)...);
// tdf#129845 only add to buffer if a relevant buffer time is estimated
if(r->calculateCombinedHoldCyclesInSeconds() > 0)
diff --git a/include/basegfx/polygon/b2dpolypolygon.hxx b/include/basegfx/polygon/b2dpolypolygon.hxx
index 68f1b0d6a619..d3177e3c4c91 100644
--- a/include/basegfx/polygon/b2dpolypolygon.hxx
+++ b/include/basegfx/polygon/b2dpolypolygon.hxx
@@ -128,9 +128,9 @@ namespace basegfx
}
template<class T, class... Args>
- std::shared_ptr<T> addOrReplaceSystemDependentData(SystemDependentDataManager& manager, Args&&... args) const
+ std::shared_ptr<T> addOrReplaceSystemDependentData(Args&&... args) const
{
- std::shared_ptr<T> r = std::make_shared<T>(manager, std::forward<Args>(args)...);
+ std::shared_ptr<T> r = std::make_shared<T>(std::forward<Args>(args)...);
// tdf#129845 only add to buffer if a relevant buffer time is estimated
if(r->calculateCombinedHoldCyclesInSeconds() > 0)