summaryrefslogtreecommitdiff
path: root/sot/source
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2017-06-30 06:22:40 +0000
committerEike Rathke <erack@redhat.com>2017-07-03 13:28:44 +0200
commit6e0a152350dbb476ef70ad9b17d57607fadc0666 (patch)
tree4aeeb0d2ec0167ba0a4cbb124f7d994585508f95 /sot/source
parenta2a890a4eb5029b9adace190a7da1b65b5855b15 (diff)
tdf#39468 Translate German comments/terms
Change-Id: I9edef3138964d3f43745be39956bc6bb66d0cc4d Reviewed-on: https://gerrit.libreoffice.org/39403 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Johnny_M <klasse@partyheld.de> Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sot/source')
-rw-r--r--sot/source/sdstor/stgdir.cxx2
-rw-r--r--sot/source/sdstor/storage.cxx39
2 files changed, 18 insertions, 23 deletions
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 ) \