summaryrefslogtreecommitdiff
path: root/rsc/source/prj
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-19 10:24:04 +0100
committerNoel Grandin <noelgrandin@gmail.com>2014-12-19 13:48:56 +0000
commit5712983f18e7cdec16ea20a9b3d94a1586de543e (patch)
tree80180ebbf5662ead34dff534e5a14b251dafa28d /rsc/source/prj
parent1e2786ac6d51838308c27a2cb84ce8ad9acd59c9 (diff)
fdo#39440 rsc: reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: I69454a75c8ce4aecf9e68f5887f38f8bf6fe6dca Reviewed-on: https://gerrit.libreoffice.org/13543 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'rsc/source/prj')
-rw-r--r--rsc/source/prj/start.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/rsc/source/prj/start.cxx b/rsc/source/prj/start.cxx
index d42f0d8a58d1..fd2de9478a2b 100644
--- a/rsc/source/prj/start.cxx
+++ b/rsc/source/prj/start.cxx
@@ -157,7 +157,6 @@ static bool CallRsc2( RscStrList * pInputList,
const OString &rSrsName, RscPtrPtr * pCmdLine )
{
int nRet;
- OString* pString;
RscVerbosity eVerbosity = RscVerbosityNormal;
RscPtrPtr aNewCmdL;
@@ -196,7 +195,7 @@ static bool CallRsc2( RscStrList * pInputList,
for ( size_t i = 0, n = pInputList->size(); i < n; ++i )
{
- pString = (*pInputList)[ i ];
+ OString* pString = (*pInputList)[ i ];
aNewCmdL.Append( rsc_strdup( pString->getStr() ) );
}
@@ -231,7 +230,6 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
char ** ppStr;
RscPtrPtr aCmdLine; // Kommandozeile
sal_uInt32 i;
- OString* pString;
pStr = ::ResponseFile( &aCmdLine, argv, argc );
if( pStr )
@@ -314,7 +312,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
for ( size_t k = 0, n = aInputList.size(); k < n; ++k )
{
- pString = aInputList[ k ];
+ OString* pString = aInputList[ k ];
aTmpName = ::GetTmpFileName();
if( !CallPrePro( *pString, aTmpName, &aCmdLine, bResponse ) )
{