diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-10-27 20:24:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-27 20:24:49 +0100 |
commit | bb90189d7cf45277edb9d907c2468848074652c4 (patch) | |
tree | 3bf9b103034d74471dbc2e95a67320a9783f31d8 /tools | |
parent | 2914d52fdf6ef3b672190ccbb2c8be5a6760187e (diff) |
sprinkle some more SAL_WARN_UNUSED around
Change-Id: Iaa1508584f005cba6e2ab63d4053cde4ce8637df
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/poly.h | 6 | ||||
-rw-r--r-- | tools/inc/tools/date.hxx | 2 | ||||
-rw-r--r-- | tools/inc/tools/datetime.hxx | 2 | ||||
-rw-r--r-- | tools/inc/tools/fract.hxx | 2 | ||||
-rw-r--r-- | tools/inc/tools/poly.hxx | 6 | ||||
-rw-r--r-- | tools/inc/tools/time.hxx | 2 | ||||
-rw-r--r-- | tools/inc/tools/unqidx.hxx | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/tools/inc/poly.h b/tools/inc/poly.h index e71ba555ce3a..a925f9b42739 100644 --- a/tools/inc/poly.h +++ b/tools/inc/poly.h @@ -21,7 +21,7 @@ #include <tools/gen.hxx> -class ImplPolygonData +class SAL_WARN_UNUSED ImplPolygonData { public: Point* mpPointAry; @@ -30,7 +30,7 @@ public: sal_uIntPtr mnRefCount; }; -class ImplPolygon : public ImplPolygonData +class SAL_WARN_UNUSED ImplPolygon : public ImplPolygonData { public: ImplPolygon( sal_uInt16 nInitSize, sal_Bool bFlags = sal_False ); @@ -48,7 +48,7 @@ public: class Polygon; typedef Polygon* SVPPOLYGON; -class ImplPolyPolygon +class SAL_WARN_UNUSED ImplPolyPolygon { public: SVPPOLYGON* mpPolyAry; diff --git a/tools/inc/tools/date.hxx b/tools/inc/tools/date.hxx index dbb40bee0c28..42c7c16a6d73 100644 --- a/tools/inc/tools/date.hxx +++ b/tools/inc/tools/date.hxx @@ -27,7 +27,7 @@ class ResId; enum DayOfWeek { MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY }; -class TOOLS_DLLPUBLIC Date +class TOOLS_DLLPUBLIC SAL_WARN_UNUSED Date { private: sal_uInt32 nDate; diff --git a/tools/inc/tools/datetime.hxx b/tools/inc/tools/datetime.hxx index 5d40dfe95b0b..0a799343145e 100644 --- a/tools/inc/tools/datetime.hxx +++ b/tools/inc/tools/datetime.hxx @@ -24,7 +24,7 @@ #include <tools/date.hxx> #include <tools/time.hxx> -class TOOLS_DLLPUBLIC DateTime : public Date, public Time +class TOOLS_DLLPUBLIC SAL_WARN_UNUSED DateTime : public Date, public Time { public: enum DateTimeInitSystem diff --git a/tools/inc/tools/fract.hxx b/tools/inc/tools/fract.hxx index 0bf04b240ccd..24c6721f0fa3 100644 --- a/tools/inc/tools/fract.hxx +++ b/tools/inc/tools/fract.hxx @@ -24,7 +24,7 @@ class SvStream; -class TOOLS_DLLPUBLIC Fraction +class TOOLS_DLLPUBLIC SAL_WARN_UNUSED Fraction { private: long nNumerator; diff --git a/tools/inc/tools/poly.hxx b/tools/inc/tools/poly.hxx index 8eb095e13729..fc6c57e5bd5d 100644 --- a/tools/inc/tools/poly.hxx +++ b/tools/inc/tools/poly.hxx @@ -53,7 +53,7 @@ enum PolyFlags }; #endif -class PolyOptimizeData +class SAL_WARN_UNUSED PolyOptimizeData { private: @@ -81,7 +81,7 @@ namespace basegfx class B2DPolyPolygon; } -class TOOLS_DLLPUBLIC Polygon +class TOOLS_DLLPUBLIC SAL_WARN_UNUSED Polygon { private: ImplPolygon* mpImplPolygon; @@ -194,7 +194,7 @@ public: explicit Polygon(const ::basegfx::B2DPolygon& rPolygon); }; -class TOOLS_DLLPUBLIC PolyPolygon +class TOOLS_DLLPUBLIC SAL_WARN_UNUSED PolyPolygon { private: ImplPolyPolygon* mpImplPolyPolygon; diff --git a/tools/inc/tools/time.hxx b/tools/inc/tools/time.hxx index 05c6d1ebdad1..fe585103bb2e 100644 --- a/tools/inc/tools/time.hxx +++ b/tools/inc/tools/time.hxx @@ -30,7 +30,7 @@ class ResId; 25 hours or 10 minus 20 seconds being (non-negative) 10 seconds. */ -class TOOLS_DLLPUBLIC Time +class TOOLS_DLLPUBLIC SAL_WARN_UNUSED Time { private: sal_Int32 nTime; diff --git a/tools/inc/tools/unqidx.hxx b/tools/inc/tools/unqidx.hxx index 18088ef4e6bc..3a3ba979d092 100644 --- a/tools/inc/tools/unqidx.hxx +++ b/tools/inc/tools/unqidx.hxx @@ -26,7 +26,7 @@ #define UNIQUEINDEX_ENTRY_NOTFOUND CONTAINER_ENTRY_NOTFOUND -class TOOLS_DLLPUBLIC UniqueIndexImpl : public std::map<sal_uInt32, void*> +class TOOLS_DLLPUBLIC SAL_WARN_UNUSED UniqueIndexImpl : public std::map<sal_uInt32, void*> { private: sal_uIntPtr nStartIndex; |