[Libreoffice-commits] core.git: Branch 'aoo/trunk' - tools/inc
Herbert Dürr
hdu at apache.org
Mon Mar 25 18:11:48 PDT 2013
tools/inc/tools/poly.hxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 209dc6b3675bff64ea54ec109f5398442a5d3f72
Author: Herbert Dürr <hdu at apache.org>
Date: Mon Mar 25 12:44:22 2013 +0000
WaE: the eType member of PolyOptimizeData is only interesting when debugging
and could be removed. The info is interesting enough for now and the structure
should stay the same regardless of whether debugging is enabled or not.
diff --git a/tools/inc/tools/poly.hxx b/tools/inc/tools/poly.hxx
index 3aad2ff..26ec980 100644
--- a/tools/inc/tools/poly.hxx
+++ b/tools/inc/tools/poly.hxx
@@ -80,7 +80,7 @@ class PolyOptimizeData
private:
enum DataType { DATA_NONE = 0, DATA_ABSOLUT = 1, DATA_PERCENT = 2 };
- DataType eType;
+ DataType eType; // NOTE: only used for debugging
union { sal_uIntPtr mnAbsolut; sal_uInt16 mnPercent; };
public:
@@ -89,7 +89,7 @@ public:
PolyOptimizeData( sal_uIntPtr nAbsolut ) : eType( DATA_ABSOLUT ), mnAbsolut( nAbsolut ) {}
PolyOptimizeData( sal_uInt16 nPercent ) : eType( DATA_PERCENT ), mnPercent( nPercent ) {}
- sal_uIntPtr GetAbsValue() const { DBG_ASSERT( eType == DATA_ABSOLUT, "Wrong data type" ); return mnAbsolut; }
+ sal_uIntPtr GetAbsValue() const { (void)eType; DBG_ASSERT( eType == DATA_ABSOLUT, "Wrong data type" ); return mnAbsolut; }
sal_uInt16 GetPercentValue() const { DBG_ASSERT( eType == DATA_PERCENT, "Wrong data type" ); return mnPercent; }
};
More information about the Libreoffice-commits
mailing list