From 6e0a152350dbb476ef70ad9b17d57607fadc0666 Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Fri, 30 Jun 2017 06:22:40 +0000 Subject: tdf#39468 Translate German comments/terms Change-Id: I9edef3138964d3f43745be39956bc6bb66d0cc4d Reviewed-on: https://gerrit.libreoffice.org/39403 Tested-by: Jenkins Reviewed-by: Johnny_M Reviewed-by: Eike Rathke --- sot/source/sdstor/stgdir.cxx | 2 +- sot/source/sdstor/storage.cxx | 39 +++++++++++++++++---------------------- 2 files changed, 18 insertions(+), 23 deletions(-) (limited to 'sot/source') diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx index ffc6d38ce76b..0af9b5ada18d 100644 --- a/sot/source/sdstor/stgdir.cxx +++ b/sot/source/sdstor/stgdir.cxx @@ -280,7 +280,7 @@ void StgDirEntry::OpenStream( StgIo& rIo ) // Close the open stream without committing. If the entry is marked as // temporary, delete it. // Do not delete pCurStrm here! -// (TLX:??? Zumindest pStgStrm muss deleted werden.) +// (TLX:??? At least pStgStrm must be deleted.) void StgDirEntry::Close() { diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx index ee8f72949834..df3caff95a85 100644 --- a/sot/source/sdstor/storage.cxx +++ b/sot/source/sdstor/storage.cxx @@ -170,7 +170,7 @@ void SotStorageStream::SetSize(sal_uInt64 const nNewSize) SvStream::SetSize( nNewSize ); if( nNewSize < nPos ) - // ans Ende setzen + // jump to the end Seek( nNewSize ); } @@ -250,27 +250,22 @@ bool SotStorageStream::SetProperty( const OUString& rName, const css::uno::Any& } } -/************************************************************************ -|* -|* SotStorage::SotStorage() -|* -|* Beschreibung Es muss ein I... Objekt an SvObject uebergeben -|* werden, da es sonst selbst ein IUnknown anlegt und -|* festlegt, dass alle weiteren I... Objekte mit -|* delete zerstoert werden (Owner() == true). -|* Es werden aber nur IStorage Objekte benutzt und nicht -|* selbst implementiert, deshalb wird so getan, als ob -|* das IStorage Objekt von aussen kam und es wird mit -|* Release() freigegeben. -|* Die CreateStorage Methoden werden benoetigt, um -|* ein IStorage Objekt vor dem Aufruf von SvObject -|* zu erzeugen (Own, !Own automatik). -|* Hat CreateStorage ein Objekt erzeugt, dann wurde -|* der RefCounter schon um 1 erhoet. -|* Die Uebergabe erfolgt in pStorageCTor. Die Variable -|* ist NULL, wenn es nicht geklappt hat. -|* -*************************************************************************/ +/** + * SotStorage::SotStorage() + * + * A I.. object must be passed to SvObject, because otherwise itself will + * create and define an IUnknown, so that all other I... objects would be + * destroyed with delete (Owner() == true). + * But IStorage objects are only used and not implemented by ourselves, + * therefore we pretend the IStorage object was passed from the outside + * and it will be freed with Release(). + * The CreateStorage methods are needed to create an IStorage object before the + * call of SvObject (Own, !Own automatic). + * If CreateStorage has created an object, then the RefCounter was already + * incremented. + * The transfer is done in pStorageCTor and the variable is NULL, if it didn't + * work. + */ #define INIT_SotStorage() \ : m_pOwnStg( nullptr ) \ , m_pStorStm( nullptr ) \ -- cgit v1.2.3