summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
Diffstat (limited to 'uui')
-rw-r--r--uui/source/fltdlg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/uui/source/fltdlg.cxx b/uui/source/fltdlg.cxx
index 1bd824bf1934..c2135bead606 100644
--- a/uui/source/fltdlg.cxx
+++ b/uui/source/fltdlg.cxx
@@ -169,7 +169,7 @@ class StringCalculator : public ::cppu::WeakImplHelper1< ::com::sun::star::util:
{
public:
StringCalculator( const OutputDevice* pDevice )
- : m_pDevice( pDevice )
+ : m_pDevice( const_cast< OutputDevice * >( pDevice ) )
{
}
@@ -179,7 +179,7 @@ class StringCalculator : public ::cppu::WeakImplHelper1< ::com::sun::star::util:
}
private:
- const OutputDevice* m_pDevice;
+ VclPtr<OutputDevice> m_pDevice;
};
/*-************************************************************************************************************