[Libreoffice-commits] core.git: lotuswordpro/source svtools/source sw/source
Julien Nabet
serval2412 at yahoo.fr
Sun Apr 7 12:33:15 PDT 2013
lotuswordpro/source/filter/xfilter/xfstylecont.cxx | 3 +--
svtools/source/contnr/fileview.cxx | 5 +----
sw/source/core/txtnode/txtedt.cxx | 3 +--
3 files changed, 3 insertions(+), 8 deletions(-)
New commits:
commit f53cbe59fb60b144ef59da7123141422ebe674f7
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Apr 7 21:30:31 2013 +0200
Some cppcheck cleaning
Change-Id: I07ef58fd99bc9fc4fd601570b59f9a3581824aa9
diff --git a/lotuswordpro/source/filter/xfilter/xfstylecont.cxx b/lotuswordpro/source/filter/xfilter/xfstylecont.cxx
index 7c9a19e..51def4b 100644
--- a/lotuswordpro/source/filter/xfilter/xfstylecont.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfstylecont.cxx
@@ -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)
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx
index 827e986..7a99e67 100644
--- a/svtools/source/contnr/fileview.cxx
+++ b/svtools/source/contnr/fileview.cxx
@@ -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();
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx
index 38b52f5..fac69fe 100644
--- a/sw/source/core/txtnode/txtedt.cxx
+++ b/sw/source/core/txtnode/txtedt.cxx
@@ -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()
More information about the Libreoffice-commits
mailing list