Kaydet (Commit) 040b8f46 authored tarafından Julien Nabet's avatar Julien Nabet

Some cppcheck cleaning

üst ebbcd842
......@@ -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 ); }
......
......@@ -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
......
......@@ -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, '/')))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment