summaryrefslogtreecommitdiff
path: root/cpputools
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 20:56:15 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 20:56:15 +0000
commite830fbd415dedf367a96efadbc959aca39d53c2e (patch)
tree449f5beb5b088357ea6464ce658bf1627cc4766d /cpputools
parenteb59c1780ed7d7a988389e1491baec073d1d9af6 (diff)
INTEGRATION: CWS warnings01 (1.19.14); FILE MERGED
2005/09/23 02:56:31 sb 1.19.14.2: RESYNC: (1.19-1.20); FILE MERGED 2005/09/07 11:52:50 sb 1.19.14.1: #i53898# Made code warning-free.
Diffstat (limited to 'cpputools')
-rw-r--r--cpputools/source/unoexe/unoexe.cxx36
1 files changed, 25 insertions, 11 deletions
diff --git a/cpputools/source/unoexe/unoexe.cxx b/cpputools/source/unoexe/unoexe.cxx
index 9c995352e8c9..e3e3d073269a 100644
--- a/cpputools/source/unoexe/unoexe.cxx
+++ b/cpputools/source/unoexe/unoexe.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: unoexe.cxx,v $
*
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 09:39:56 $
+ * last change: $Author: hr $ $Date: 2006-06-19 21:56:15 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -120,11 +120,21 @@ static OUString convertToFileUrl(const OUString& fileName)
if ( fileName.indexOf('.') == 0 || fileName.indexOf(SEPARATOR) < 0 )
{
OUString uWorkingDir;
- OSL_VERIFY( osl_getProcessWorkingDir(&uWorkingDir.pData) == osl_Process_E_None );
- OSL_VERIFY( FileBase::getAbsoluteFileURL(uWorkingDir, fileName, uUrlFileName) == FileBase::E_None );
+ if (osl_getProcessWorkingDir(&uWorkingDir.pData) != osl_Process_E_None) {
+ OSL_ASSERT(false);
+ }
+ if (FileBase::getAbsoluteFileURL(uWorkingDir, fileName, uUrlFileName)
+ != FileBase::E_None)
+ {
+ OSL_ASSERT(false);
+ }
} else
{
- OSL_VERIFY( FileBase::getFileURLFromSystemPath(fileName, uUrlFileName) == FileBase::E_None );
+ if (FileBase::getFileURLFromSystemPath(fileName, uUrlFileName)
+ != FileBase::E_None)
+ {
+ OSL_ASSERT(false);
+ }
}
return uUrlFileName;
@@ -593,7 +603,7 @@ struct ODisposingListener : public WeakImplHelper1< XEventListener >
static void waitFor( const Reference< XComponent > & xComp );
};
//__________________________________________________________________________________________________
-void ODisposingListener::disposing( const EventObject & rEvt )
+void ODisposingListener::disposing( const EventObject & )
throw (RuntimeException)
{
cDisposed.set();
@@ -619,7 +629,7 @@ void ODisposingListener::waitFor( const Reference< XComponent > & xComp )
using namespace unoexe;
-SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
+SAL_IMPLEMENT_MAIN_WITH_ARGS(argc,)
{
if (argc <= 1)
{
@@ -740,7 +750,11 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
sal_Int32 nOffset = nPos;
for ( ; nPos < nCount; ++nPos )
{
- OSL_VERIFY( rtl_getAppCommandArg( nPos, &pParams[nPos -nOffset].pData ) == osl_Process_E_None );
+ if (rtl_getAppCommandArg( nPos, &pParams[nPos -nOffset].pData )
+ != osl_Process_E_None)
+ {
+ OSL_ASSERT(false);
+ }
}
if (aReadOnlyRegistries.size() > 0 ||
@@ -813,11 +827,11 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
// init params
Sequence< Any > aInitParams( aParams.getLength() );
- const OUString * pParams = aParams.getConstArray();
+ const OUString * p = aParams.getConstArray();
Any * pInitParams = aInitParams.getArray();
- for ( sal_Int32 nPos = aParams.getLength(); nPos--; )
+ for ( sal_Int32 i = aParams.getLength(); i--; )
{
- pInitParams[nPos] = makeAny( pParams[nPos] );
+ pInitParams[i] = makeAny( p[i] );
}
// instance provider