diff options
author | Tobias Lippert <drtl@fastmail.fm> | 2014-06-22 13:23:07 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-07-16 07:30:30 +0000 |
commit | 7dd5f9308895644ae6ece56253c892046cc6ed5e (patch) | |
tree | 27f2f34a1c4f1041bf12d147fd4238974fbd983d /include/svl | |
parent | 6bd087bf86746721186756ed270c62909ea8cf41 (diff) |
translate comments in itempool.hxx
Change-Id: Ifd9c0dd2ceec08f50f3a8c4356fb288e65040dc5
Reviewed-on: https://gerrit.libreoffice.org/10345
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/itempool.hxx | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/include/svl/itempool.hxx b/include/svl/itempool.hxx index 9ce3220f1d84..6960d5e80c89 100644 --- a/include/svl/itempool.hxx +++ b/include/svl/itempool.hxx @@ -55,18 +55,13 @@ protected: ~SfxItemPoolUser() {} }; -/* [Beschreibung] - - Die von dieser Klasse abgeleiteten Klassen dienen der Bereitstellung von - Defaults von SfxPoolItems und halten konkrete (konstante) Instanzen, die - dann von mehreren Stellen (i.d.R. eines Dokuments) referenziert werden - k"onnen. - - Dadurch ist jeder Wert nur einmalig gespeichert, was zu wenig Konstruktor - und Destruktor-Aufrufen f"ahrt, Vergleiche zwischen Items eines Dokuments - beschleunigt und ein einfaches Laden und Speichern von Attributen - bereitstellt. -*/ +/** Base class for providers of defaults of SfxPoolItems. + * + * The derived classes hold the concrete (const) instances which are referenced in several places + * (usually within a single document). + * This helps to lower the amount of calls to lifecycle methods, speeds up comparisons within a document + * and facilitates loading and saving of attributes. + */ class SVL_DLLPUBLIC SfxItemPool { friend struct SfxItemPool_Impl; @@ -227,19 +222,19 @@ private: static const SfxItemPool* pStoringPool_; }; -// nur der Pool darf den Referenz-Zaehler manipulieren !!! +// only the pool may manipulate the reference counts inline void SfxItemPool::SetRefCount( SfxPoolItem& rItem, sal_uLong n ) { rItem.SetRefCount(n); } -// nur der Pool darf den Referenz-Zaehler manipulieren !!! +// only the pool may manipulate the reference counts inline sal_uLong SfxItemPool::AddRef( const SfxPoolItem& rItem, sal_uLong n ) { return rItem.AddRef(n); } -// nur der Pool darf den Referenz-Zaehler manipulieren !!! +// only the pool may manipulate the reference counts inline sal_uLong SfxItemPool::ReleaseRef( const SfxPoolItem& rItem, sal_uLong n ) { return rItem.ReleaseRef(n); |