summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-05-18 17:05:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-05-19 15:03:36 +0200
commit5d8ac801c00fbf1dc16ee8dbfe8167baf7ea0ce0 (patch)
treee7077c2ad63f69379b6de104c8dc21041a8dc5a1 /include
parent457fabbc358930b71884a97ba9ade4bd26310ce0 (diff)
SetPhysFont always dereferences its OutputDevice* arg
which is also the case for ChgPhysFont and GetTextSize Change-Id: I7e6a1a7eaa77646c53506a73d8946f8df7593e72 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115768 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/editeng/svxfont.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/editeng/svxfont.hxx b/include/editeng/svxfont.hxx
index b385ada1592d..5174e482bf1a 100644
--- a/include/editeng/svxfont.hxx
+++ b/include/editeng/svxfont.hxx
@@ -78,8 +78,8 @@ public:
// Handle upper case letters
void DoOnCapitals(SvxDoCapitals &rDo) const;
- void SetPhysFont( OutputDevice *pOut ) const;
- vcl::Font ChgPhysFont( OutputDevice *pOut ) const;
+ void SetPhysFont(OutputDevice& rOut) const;
+ vcl::Font ChgPhysFont(OutputDevice& rOut) const;
Size GetCapitalSize( const OutputDevice *pOut, const OUString &rTxt,
const sal_Int32 nIdx, const sal_Int32 nLen) const;
@@ -91,8 +91,8 @@ public:
Size GetPhysTxtSize( const OutputDevice *pOut );
- Size GetTextSize( const OutputDevice *pOut, const OUString &rTxt,
- const sal_Int32 nIdx = 0, const sal_Int32 nLen = SAL_MAX_INT32 ) const;
+ Size GetTextSize(const OutputDevice& rOut, const OUString &rTxt,
+ const sal_Int32 nIdx = 0, const sal_Int32 nLen = SAL_MAX_INT32) const;
void QuickDrawText( OutputDevice *pOut, const Point &rPos, const OUString &rTxt,
const sal_Int32 nIdx = 0, const sal_Int32 nLen = SAL_MAX_INT32, const tools::Long* pDXArray = nullptr ) const;