diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-08-29 09:23:10 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-09-06 22:40:13 +0200 |
commit | efce802d3a52e2fc9843ca0da3472656c6025a0b (patch) | |
tree | fb867e619933c433183929bf9b9df1544770b434 /tools/source | |
parent | 40620d716b9f07924fe8896ca59753858b259d65 (diff) |
[cppcheker] delete unread variable
Diffstat (limited to 'tools/source')
-rw-r--r-- | tools/source/generic/config.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/source/generic/config.cxx b/tools/source/generic/config.cxx index fb879ea27b41..d72ed8a29f88 100644 --- a/tools/source/generic/config.cxx +++ b/tools/source/generic/config.cxx @@ -103,8 +103,7 @@ static sal_uIntPtr ImplSysGetConfigTimeStamp( const XubString& rFileName ) ::osl::DirectoryItem aItem; ::osl::FileStatus aStatus( osl_FileStatus_Mask_ModifyTime ); - int nError = 0; - if( ( nError = ::osl::DirectoryItem::get( rFileName, aItem ) ) == ::osl::FileBase::E_None && + if( ::osl::DirectoryItem::get( rFileName, aItem ) == ::osl::FileBase::E_None && aItem.getFileStatus( aStatus ) == ::osl::FileBase::E_None ) { nTimeStamp = aStatus.getModifyTime().Seconds; |