tools/inc/tools/poly.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 209dc6b3675bff64ea54ec109f5398442a5d3f72 Author: Herbert Dürr <h...@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; } };
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits