summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2020-05-12 23:00:31 +1000
committerTomaž Vajngerl <quikee@gmail.com>2020-05-23 17:46:33 +0200
commit0f593cbec826e79051a13c5b18bbe796cef12519 (patch)
treea7112e0a761f95b8c48b7ee9710ce273287033f8 /include/vcl
parentce8a677bdd3ef380e26b61ca18deaf480137161f (diff)
vcl: rename misnamed OutputDevice::SetBackgroundComponentBounds()
This function does not set the internal state of anything in OutputDevice, but rather calculates the background component bounds. Hence it should be a Get function, not a Set function. Change-Id: Id33d8febfa012de2b44a671e9bddad18bc86ce78 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94396 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/outdev.hxx2
-rw-r--r--include/vcl/print.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index e7c014ee3561..64936a956cd0 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -559,7 +559,7 @@ protected:
virtual void CopyDeviceArea( SalTwoRect& aPosAry, bool bWindowInvalidate);
- virtual tools::Rectangle SetBackgroundComponentBounds();
+ virtual tools::Rectangle GetBackgroundComponentBounds() const;
virtual const OutputDevice* DrawOutDevDirectCheck(const OutputDevice* pSrcDev) const;
diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx
index f188d69589a8..c5167d7bd608 100644
--- a/include/vcl/print.hxx
+++ b/include/vcl/print.hxx
@@ -366,7 +366,7 @@ public:
virtual void CopyArea( const Point& rDestPt, const Point& rSrcPt,
const Size& rSrcSize, bool bWindowInvalidate = false ) override;
- virtual tools::Rectangle SetBackgroundComponentBounds() override;
+ virtual tools::Rectangle GetBackgroundComponentBounds() const override;
// These 3 together are more modular PrintJob(), allowing printing more documents as one print job
// by repeated calls to ExecutePrintJob(). Used by mailmerge.