[Libreoffice-commits] .: framework/source tools/source xmlsecurity/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Oct 14 08:37:45 PDT 2012


 framework/source/helper/statusindicatorfactory.cxx |    3 +--
 tools/source/fsys/dirent.cxx                       |    2 +-
 xmlsecurity/source/xmlsec/saxhelper.cxx            |    1 -
 3 files changed, 2 insertions(+), 4 deletions(-)

New commits:
commit a7efb9b8dd0b7deee49975961ca49f6838648614
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Oct 14 16:37:00 2012 +0100

    loplugin: fix some indents and unused OUStrings
    
    Change-Id: I1d7256eea7a79453d3cdb85d1edcf824d58d775e

diff --git a/framework/source/helper/statusindicatorfactory.cxx b/framework/source/helper/statusindicatorfactory.cxx
index c24aabf..d5ce604 100644
--- a/framework/source/helper/statusindicatorfactory.cxx
+++ b/framework/source/helper/statusindicatorfactory.cxx
@@ -452,8 +452,7 @@ void StatusIndicatorFactory::impl_createProgress()
         VCLStatusIndicator* pVCLProgress = new VCLStatusIndicator(xSMGR, xWindow);
         xProgress = css::uno::Reference< css::task::XStatusIndicator >(static_cast< css::task::XStatusIndicator* >(pVCLProgress), css::uno::UNO_QUERY);
     }
-    else
-    if (xFrame.is())
+    else if (xFrame.is())
     {
         // use frame layouted progress implementation
         css::uno::Reference< css::beans::XPropertySet > xPropSet(xFrame, css::uno::UNO_QUERY);
diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx
index aef1299..6efde8a 100644
--- a/tools/source/fsys/dirent.cxx
+++ b/tools/source/fsys/dirent.cxx
@@ -872,7 +872,7 @@ String DirEntry::GetExtension( char cSep ) const
     const char *p0 = aName.getStr();
     const char *p1 = p0 + aName.getLength() - 1;
     while ( p1 >= p0 && *p1 != cSep )
-    p1--;
+        p1--;
 
     if ( p1 >= p0 )
     {
diff --git a/xmlsecurity/source/xmlsec/saxhelper.cxx b/xmlsecurity/source/xmlsec/saxhelper.cxx
index 3276d17..dbf1b37 100644
--- a/xmlsecurity/source/xmlsec/saxhelper.cxx
+++ b/xmlsecurity/source/xmlsec/saxhelper.cxx
@@ -62,7 +62,6 @@ const xmlChar** attrlist_to_nxmlstr( const cssu::Sequence< cssxcsax::XMLAttribut
     xmlChar* attname = NULL ;
     xmlChar* attvalue = NULL ;
     const xmlChar** attrs = NULL ;
-    rtl::OUString oustr ;
 
     sal_Int32 nLength = aAttributes.getLength();
 


More information about the Libreoffice-commits mailing list