[Libreoffice-commits] .: tools/source

Tor Lillqvist tml at kemper.freedesktop.org
Thu Jan 19 04:05:24 PST 2012


 tools/source/stream/strmunx.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 755f299eccee79aa91ce6d935b85d2b00fe74974
Author: Tor Lillqvist <tlillqvist at suse.com>
Date:   Thu Jan 19 14:01:45 2012 +0200

    C++ is a nicely standardized language

diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx
index 8b47282..0fcddbd 100644
--- a/tools/source/stream/strmunx.cxx
+++ b/tools/source/stream/strmunx.cxx
@@ -126,19 +126,19 @@ sal_Bool InternalStreamLock::LockFile( sal_Size nStart, sal_Size nEnd, SvFileStr
     osl::MutexGuard aGuard( LockMutex::get() );
 #endif
     osl::DirectoryItem aItem;
-    if (osl::DirectoryItem::get( pStream->GetFileName(), aItem) != osl::FileBase::RC::E_None )
+    if (osl::DirectoryItem::get( pStream->GetFileName(), aItem) != osl::FileBase::E_None )
     {
         SAL_INFO("tools", "Failed to lookup stream for locking");
         return sal_True;
     }
 
     osl::FileStatus aStatus( osl_FileStatus_Mask_Type );
-    if ( aItem.getFileStatus( aStatus ) != osl::FileBase::RC::E_None )
+    if ( aItem.getFileStatus( aStatus ) != osl::FileBase::E_None )
     {
         SAL_INFO("tools", "Failed to stat stream for locking");
         return sal_True;
     }
-    if( aStatus.getFileType() == osl::FileStatus::Type::Directory )
+    if( aStatus.getFileType() == osl::FileStatus::Directory )
         return sal_True;
 
     InternalStreamLock* pLock = NULL;


More information about the Libreoffice-commits mailing list