diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-02-05 12:18:53 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-02-05 16:36:16 -0600 |
commit | 5c5d31b04c4a856a103312064e87f50ddd385474 (patch) | |
tree | f0926552942093d3d808e4a91935f7f633f5744e | |
parent | 5523ed4b3571a22c32357459fd4f4976d32a341f (diff) |
coverity#707761-62 Uninitialized scalar field
Change-Id: I9ebd8df6e510640e511a61332ab1d712b68c40ca
-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: |