[Libreoffice-commits] core.git: include/svl

Tobias Lippert drtl at fastmail.fm
Wed Jul 16 00:31:03 PDT 2014


 include/svl/itempool.hxx |   25 ++++++++++---------------
 1 file changed, 10 insertions(+), 15 deletions(-)

New commits:
commit 7dd5f9308895644ae6ece56253c892046cc6ed5e
Author: Tobias Lippert <drtl at fastmail.fm>
Date:   Sun Jun 22 13:23:07 2014 +0200

    translate comments in itempool.hxx
    
    Change-Id: Ifd9c0dd2ceec08f50f3a8c4356fb288e65040dc5
    Reviewed-on: https://gerrit.libreoffice.org/10345
    Reviewed-by: Thomas Arnhold <thomas at arnhold.org>
    Tested-by: Thomas Arnhold <thomas at arnhold.org>

diff --git a/include/svl/itempool.hxx b/include/svl/itempool.hxx
index 9ce3220..6960d5e 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);


More information about the Libreoffice-commits mailing list