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)
}
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)
......
......@@ -1036,11 +1036,10 @@ void ViewTabListBox_Impl::DoQuickSearch( const sal_Unicode& rChar )
OUString aLastText = maQuickSearchText;
sal_uInt32 aLastPos = mnSearchIndex;
sal_Bool bFound = sal_False;
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 ) &&
( aLastText == OUString(rChar) ) )
......@@ -1060,8 +1059,6 @@ void ViewTabListBox_Impl::DoQuickSearch( const sal_Unicode& rChar )
SetCurEntry( pEntry );
MakeVisible( pEntry );
}
else
bFound = sal_False;
}
maResetQuickSearch.Start();
......
......@@ -1281,8 +1281,7 @@ SwRect SwTxtFrm::_AutoSpell( const SwCntntNode* pActNode, const SwViewOption& rV
// within the word
LanguageType eActLang = aScanner.GetCurrentLanguage();
sal_Bool bSpell = sal_True;
bSpell = xSpell.is() ? xSpell->hasLanguage( eActLang ) : sal_False;
sal_Bool bSpell = xSpell.is() ? xSpell->hasLanguage( eActLang ) : sal_False;
if( bSpell && rWord.Len() > 0 )
{
// 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