Kaydet (Commit) f53cbe59 authored tarafından Julien Nabet's avatar Julien Nabet

Some cppcheck cleaning

Change-Id: I07ef58fd99bc9fc4fd601570b59f9a3581824aa9
üst 41ac8040
...@@ -71,9 +71,8 @@ XFStyleContainer::XFStyleContainer(const OUString& strStyleNamePrefix) ...@@ -71,9 +71,8 @@ XFStyleContainer::XFStyleContainer(const OUString& strStyleNamePrefix)
} }
XFStyleContainer::XFStyleContainer(const XFStyleContainer& other):IXFObject(other), XFStyleContainer::XFStyleContainer(const XFStyleContainer& other):IXFObject(other),
m_strStyleNamePrefix(other.m_strStyleNamePrefix) m_aStyles(other.m_aStyles), m_strStyleNamePrefix(other.m_strStyleNamePrefix)
{ {
this->m_aStyles = other.m_aStyles;
} }
XFStyleContainer& XFStyleContainer::operator=(const XFStyleContainer& other) XFStyleContainer& XFStyleContainer::operator=(const XFStyleContainer& other)
......
...@@ -1036,11 +1036,10 @@ void ViewTabListBox_Impl::DoQuickSearch( const sal_Unicode& rChar ) ...@@ -1036,11 +1036,10 @@ void ViewTabListBox_Impl::DoQuickSearch( const sal_Unicode& rChar )
OUString aLastText = maQuickSearchText; OUString aLastText = maQuickSearchText;
sal_uInt32 aLastPos = mnSearchIndex; sal_uInt32 aLastPos = mnSearchIndex;
sal_Bool bFound = sal_False;
maQuickSearchText += OUString(rChar).toAsciiLowerCase(); maQuickSearchText += OUString(rChar).toAsciiLowerCase();
bFound = mpParent->SearchNextEntry( mnSearchIndex, maQuickSearchText, sal_False ); sal_Bool bFound = mpParent->SearchNextEntry( mnSearchIndex, maQuickSearchText, sal_False );
if ( !bFound && ( aLastText.getLength() == 1 ) && if ( !bFound && ( aLastText.getLength() == 1 ) &&
( aLastText == OUString(rChar) ) ) ( aLastText == OUString(rChar) ) )
...@@ -1060,8 +1059,6 @@ void ViewTabListBox_Impl::DoQuickSearch( const sal_Unicode& rChar ) ...@@ -1060,8 +1059,6 @@ void ViewTabListBox_Impl::DoQuickSearch( const sal_Unicode& rChar )
SetCurEntry( pEntry ); SetCurEntry( pEntry );
MakeVisible( pEntry ); MakeVisible( pEntry );
} }
else
bFound = sal_False;
} }
maResetQuickSearch.Start(); maResetQuickSearch.Start();
......
...@@ -1281,8 +1281,7 @@ SwRect SwTxtFrm::_AutoSpell( const SwCntntNode* pActNode, const SwViewOption& rV ...@@ -1281,8 +1281,7 @@ SwRect SwTxtFrm::_AutoSpell( const SwCntntNode* pActNode, const SwViewOption& rV
// within the word // within the word
LanguageType eActLang = aScanner.GetCurrentLanguage(); LanguageType eActLang = aScanner.GetCurrentLanguage();
sal_Bool bSpell = sal_True; sal_Bool bSpell = xSpell.is() ? xSpell->hasLanguage( eActLang ) : sal_False;
bSpell = xSpell.is() ? xSpell->hasLanguage( eActLang ) : sal_False;
if( bSpell && rWord.Len() > 0 ) if( bSpell && rWord.Len() > 0 )
{ {
// check for: bAlter => xHyphWord.is() // check for: bAlter => xHyphWord.is()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment