summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-14 16:37:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-14 16:37:00 +0100
commita7efb9b8dd0b7deee49975961ca49f6838648614 (patch)
tree1cbe73d3f6542474d4bd14680b97fc850789f985
parent979d8f30c6819770935943a3e338cd42de071e02 (diff)
loplugin: fix some indents and unused OUStrings
Change-Id: I1d7256eea7a79453d3cdb85d1edcf824d58d775e
-rw-r--r--framework/source/helper/statusindicatorfactory.cxx3
-rw-r--r--tools/source/fsys/dirent.cxx2
-rw-r--r--xmlsecurity/source/xmlsec/saxhelper.cxx1
3 files changed, 2 insertions, 4 deletions
diff --git a/framework/source/helper/statusindicatorfactory.cxx b/framework/source/helper/statusindicatorfactory.cxx
index c24aabf68113..d5ce6042a1be 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 aef12998b722..6efde8a9b427 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 3276d17c2d86..dbf1b3704702 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();