diff options
-rw-r--r-- | editeng/source/misc/splwrap.cxx | 4 | ||||
-rw-r--r-- | include/editeng/splwrap.hxx | 6 |
2 files changed, 2 insertions, 8 deletions
diff --git a/editeng/source/misc/splwrap.cxx b/editeng/source/misc/splwrap.cxx index e5bd328ce497..730f7eca4371 100644 --- a/editeng/source/misc/splwrap.cxx +++ b/editeng/source/misc/splwrap.cxx @@ -64,8 +64,8 @@ void SvxPrepareAutoCorrect( OUString &rOldText, const OUString &rNewText ) // rOldText: text to be replaced // rNewText: replacement text - sal_Int32 nOldLen = rOldText.getLength(), - nNewLen = rNewText.getLength(); + sal_Int32 nOldLen = rOldText.getLength(); + sal_Int32 nNewLen = rNewText.getLength(); if (nOldLen && nNewLen) { bool bOldHasDot = '.' == rOldText[ nOldLen - 1 ], diff --git a/include/editeng/splwrap.hxx b/include/editeng/splwrap.hxx index 754c4d0187a2..d2fb651c6119 100644 --- a/include/editeng/splwrap.hxx +++ b/include/editeng/splwrap.hxx @@ -56,7 +56,6 @@ private: ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XHyphenator > xHyph; SdrObject* mpTextObj; - sal_uInt16 nOldLang; // Set Language, only call SetLanguage on changes sal_Bool bOtherCntnt : 1; // set => Check special sections initially sal_Bool bDialog : 1; // Is pWin the Svx...Dialog? sal_Bool bHyphen : 1; // Split instead of spell checking @@ -111,11 +110,6 @@ public: GetXHyphenator() { return xHyph; } inline sal_Bool IsAllRight() { return bAllRight; } inline Window* GetWin() { return pWin; } - // can possibly be omitted in ONE_LINGU: - inline void SetOldLang( const sal_uInt16 nNew ){ nOldLang = nNew; } - // can possibly be omitted in ONE_LINGU: - inline void ChangeLanguage( const sal_uInt16 nNew ) // call SetLanguage if needed. - { if ( nNew != nOldLang ) { SetLanguage( nNew ); nOldLang = nNew; } } inline void EnableAutoCorrect() { bAuto = sal_True; } protected: |