Tweak an enum declaration to make the clang compiler happy.

This exposes our "unknown type" to users, which is a loss of encapsulation.
TBR=robertphillips

http://codereview.appspot.com/6865050/



git-svn-id: http://skia.googlecode.com/svn/trunk@6641 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
tomhudson@google.com 2012-12-03 11:41:21 +00:00
parent 47c88995b4
commit 0da23a5184
2 changed files with 3 additions and 8 deletions

View File

@ -55,6 +55,9 @@ public:
* by type(). The subtypes become progressively less restrictive.
*/
enum Type {
// !< Internal indicator that the sub type must be computed.
kUnknown_Type = -1,
// !< The RR is empty
kEmpty_Type,
@ -197,11 +200,6 @@ public:
SkDEBUGCODE(void validate() const;)
private:
enum {
//!< Internal indicator that the sub type must be computed.
kUnknown_Type = -1
};
SkRect fRect;
// Radii order is UL, UR, LR, LL. Use Corner enum to index into fRadii[]
SkVector fRadii[4];

View File

@ -276,12 +276,9 @@ void SkRRect::validate() const {
SkASSERT(!fRect.isEmpty());
SkASSERT(!allRadiiZero && !allRadiiSame && !allCornersSquare);
break;
#if 0
// error: case value not in enumerated type 'SkRRect::Type
case kUnknown_Type:
// no limits on this
break;
#endif
}
}
#endif // SK_DEBUG