Author: hdu
Date: Mon Mar 25 13:44:22 2013
New Revision: 1460657

URL: http://svn.apache.org/r1460657
Log:
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.

Modified:
    openoffice/trunk/main/tools/inc/tools/poly.hxx

Modified: openoffice/trunk/main/tools/inc/tools/poly.hxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/tools/inc/tools/poly.hxx?rev=1460657&r1=1460656&r2=1460657&view=diff
==============================================================================
--- openoffice/trunk/main/tools/inc/tools/poly.hxx (original)
+++ openoffice/trunk/main/tools/inc/tools/poly.hxx Mon Mar 25 13:44:22 2013
@@ -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; }
 };
 


Reply via email to