summaryrefslogtreecommitdiff
path: root/reportdesign/source
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-02-01 23:49:11 +0100
committerJulien Nabet <serval2412@yahoo.fr>2011-02-01 23:49:11 +0100
commitfc82a458b39dcd3ec5801c31c44fc8d48f5dc0f4 (patch)
tree914e0f3c3637592d1abb44597ca28482fbeb31b4 /reportdesign/source
parentfd6ff6c697c8ee1bfddd9792984b671de642155c (diff)
cppcheck reduce scope of a variable
Diffstat (limited to 'reportdesign/source')
-rw-r--r--reportdesign/source/ui/report/propbrw.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/reportdesign/source/ui/report/propbrw.cxx b/reportdesign/source/ui/report/propbrw.cxx
index cdb35b45f4df..6a3b365392bd 100644
--- a/reportdesign/source/ui/report/propbrw.cxx
+++ b/reportdesign/source/ui/report/propbrw.cxx
@@ -363,13 +363,13 @@ void PropBrw::implSetNewObject( const uno::Sequence< Reference<uno::XInterface>
}
else if ( _aObjects.getLength() == 1 ) // single selection
{
- sal_uInt16 nResId = 0;
aName = String(ModuleRes(RID_STR_BRWTITLE_PROPERTIES));
uno::Reference< container::XNameContainer > xNameCont(_aObjects[0],uno::UNO_QUERY);
Reference< lang::XServiceInfo > xServiceInfo( xNameCont->getByName(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ReportComponent"))), UNO_QUERY );
if ( xServiceInfo.is() )
{
+ sal_uInt16 nResId = 0;
if ( xServiceInfo->supportsService( SERVICE_FIXEDTEXT ) )
{
nResId = RID_STR_PROPTITLE_FIXEDTEXT;