diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-23 10:19:08 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-24 11:48:37 +0200 |
commit | 5c43ca5518f8f3558ac7f27a37b43610c219c4d5 (patch) | |
tree | fc056b2b3fa75f1a655a43d2261652020b66a390 /include/canvas | |
parent | b952aaacb1a6ef628226ef2699fac9fab936f20b (diff) |
convert SpriteChangeRecord::ChangeType to scoped enum
Change-Id: I29696f37a023317bdaa8f53d753ccaeb8e68a3c2
Diffstat (limited to 'include/canvas')
-rw-r--r-- | include/canvas/spriteredrawmanager.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/canvas/spriteredrawmanager.hxx b/include/canvas/spriteredrawmanager.hxx index 7a35527f3fc6..ffc625a3cb9e 100644 --- a/include/canvas/spriteredrawmanager.hxx +++ b/include/canvas/spriteredrawmanager.hxx @@ -143,10 +143,10 @@ namespace canvas */ struct SpriteChangeRecord { - typedef enum{ none=0, move, update } ChangeType; + enum class ChangeType { none=0, move, update }; SpriteChangeRecord() : - meChangeType( none ), + meChangeType( ChangeType::none ), mpAffectedSprite(), maOldPos(), maUpdateArea() @@ -157,7 +157,7 @@ namespace canvas const ::basegfx::B2DPoint& rOldPos, const ::basegfx::B2DPoint& rNewPos, const ::basegfx::B2DVector& rSpriteSize ) : - meChangeType( move ), + meChangeType( ChangeType::move ), mpAffectedSprite( rSprite ), maOldPos( rOldPos ), maUpdateArea( rNewPos.getX(), @@ -170,7 +170,7 @@ namespace canvas SpriteChangeRecord( const Sprite::Reference& rSprite, const ::basegfx::B2DPoint& rPos, const ::basegfx::B2DRange& rUpdateArea ) : - meChangeType( update ), + meChangeType( ChangeType::update ), mpAffectedSprite( rSprite ), maOldPos( rPos ), maUpdateArea( rUpdateArea ) |