summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-07-31 17:37:07 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-07-31 17:37:07 +0200
commit771c8d34780b48497e2ca3408c6b509b5137d251 (patch)
tree5c890dcb4377b003620bcb94c5ef50ffa448b52f
parentfb6c475aa46b475f381d62c112e0e8cf05fffd98 (diff)
Some cppcheck cleaning
-rw-r--r--basic/inc/basic/sbxcore.hxx9
-rw-r--r--desktop/source/app/appinit.cxx2
-rwxr-xr-xdesktop/unx/source/pagein.c1
3 files changed, 8 insertions, 4 deletions
diff --git a/basic/inc/basic/sbxcore.hxx b/basic/inc/basic/sbxcore.hxx
index 3aec64200c..8cbaf43d2f 100644
--- a/basic/inc/basic/sbxcore.hxx
+++ b/basic/inc/basic/sbxcore.hxx
@@ -145,16 +145,19 @@ SV_DECL_REF(SbxBase)
#endif
inline void SbxBase::SetFlags( sal_uInt16 n )
-{ DBG_CHKTHIS( SbxBase, 0 ); nFlags = n; }
+{ //DBG_CHKTHIS( SbxBase, 0 );
+ nFlags = n; }
inline sal_uInt16 SbxBase::GetFlags() const
{ DBG_CHKTHIS( SbxBase, 0 ); return nFlags; }
inline void SbxBase::SetFlag( sal_uInt16 n )
-{ DBG_CHKTHIS( SbxBase, 0 ); nFlags |= n; }
+{ //DBG_CHKTHIS( SbxBase, 0 );
+ nFlags |= n; }
inline void SbxBase::ResetFlag( sal_uInt16 n )
-{ DBG_CHKTHIS( SbxBase, 0 ); nFlags &= ~n; }
+{ //DBG_CHKTHIS( SbxBase, 0 );
+ nFlags &= ~n; }
inline sal_Bool SbxBase::IsSet( sal_uInt16 n ) const
{ DBG_CHKTHIS( SbxBase, 0 ); return sal_Bool( ( nFlags & n ) != 0 ); }
diff --git a/desktop/source/app/appinit.cxx b/desktop/source/app/appinit.cxx
index 45e9528cf6..dd7bc2fd44 100644
--- a/desktop/source/app/appinit.cxx
+++ b/desktop/source/app/appinit.cxx
@@ -402,7 +402,7 @@ void Desktop::CreateTemporaryDirectory()
else
aMsg = OUString( RTL_CONSTASCII_USTRINGPARAM( "The path manager is not available.\n" ));
e.Message = aMsg + e.Message;
- throw e;
+ throw;
}
// remove possible old directory and base directory
diff --git a/desktop/unx/source/pagein.c b/desktop/unx/source/pagein.c
index 947b4b7375..90392b7908 100755
--- a/desktop/unx/source/pagein.c
+++ b/desktop/unx/source/pagein.c
@@ -108,6 +108,7 @@ int pagein_execute (int argc, char **argv)
if ((argv[i][0] == '@') && ((fp = fopen (argv[i], "r")) == 0))
{
char fullpath[4096];
+ memset(fullpath, 0, sizeof(fullpath));
char *path;
strncpy (fullpath, argv[i] + 1, 3000);
if (!(path = strrchr (fullpath, '/')))