diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-08-29 12:19:36 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-08-29 16:57:06 +0200 |
commit | 098df79fe179ebccafaaab0418505b32af31e1e8 (patch) | |
tree | 48f2786093e55c269ef398d90bd9fcefe4f0fcbf /sot | |
parent | 0871b509d24e0d30d2e0a4f4f38d6196def64ad1 (diff) |
Formatting and bail-out early (to not re-format too much)
Change-Id: If4c55fe669f7bb861baca0ae224675ca74004de5
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/ucbstorage.cxx | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index bf1f72f6cec3..77ac24956701 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -398,9 +398,9 @@ SvGlobalName GetClassId_Impl( SotClipboardFormatId nFormat ) // class, that uses the refcounted object as impl-class. enum RepresentModes { - nonset, - svstream, - xinputstream + nonset, + svstream, + xinputstream }; class UCBStorageStream_Impl : public SvRefBase, public SvStream @@ -450,7 +450,7 @@ public: BaseStorage* CreateStorage();// create an OLE Storage on the UCBStorageStream sal_uLong GetSize(); - sal_uInt64 ReadSourceWriteTemporary( sal_uInt64 aLength ); // read aLength from source and copy to temporary, + sal_uInt64 ReadSourceWriteTemporary( sal_uInt64 aLength ); // read aLength from source and copy to temporary, // no seeking is produced sal_uLong ReadSourceWriteTemporary(); // read source till the end and copy to temporary, @@ -489,10 +489,10 @@ public: // this means that the root storage does an autocommit when its external // reference is destroyed bool m_bIsRoot; // marks this storage as root storages that manages all oommits and reverts - bool m_bDirty; // ??? + bool m_bDirty; // ??? bool m_bIsLinked; bool m_bListCreated; - SotClipboardFormatId m_nFormat; + SotClipboardFormatId m_nFormat; OUString m_aUserTypeName; SvGlobalName m_aClassId; @@ -518,22 +518,25 @@ public: void ReadContent(); void CreateContent(); ::ucbhelper::Content* GetContent() - { if ( !m_pContent ) CreateContent(); return m_pContent; } + { + if ( !m_pContent ) + CreateContent(); + return m_pContent; + } UCBStorageElementList_Impl& GetChildrenList() { - long nError = m_nError; - ReadContent(); - if ( m_nMode & StreamMode::WRITE ) - { - m_nError = nError; - if ( m_pAntiImpl ) + long nError = m_nError; + ReadContent(); + if ( m_nMode & StreamMode::WRITE ) { - m_pAntiImpl->ResetError(); - m_pAntiImpl->SetError( nError ); + m_nError = nError; + if ( m_pAntiImpl ) + { + m_pAntiImpl->ResetError(); + m_pAntiImpl->SetError( nError ); + } } - } - - return m_aChildrenList; + return m_aChildrenList; } void SetError( long nError ); @@ -661,8 +664,7 @@ UCBStorageStream_Impl::UCBStorageStream_Impl( const OUString& rName, StreamMode if ( bRepair ) { - xComEnv = new ::ucbhelper::CommandEnvironment( Reference< ::com::sun::star::task::XInteractionHandler >(), - xProgress ); + xComEnv = new ::ucbhelper::CommandEnvironment( Reference< ::com::sun::star::task::XInteractionHandler >(), xProgress ); aTemp += "?repairpackage"; } |