summaryrefslogtreecommitdiff
path: root/include/svx/svdhlpln.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-22 11:57:53 +0200
committerNoel Grandin <noel@peralex.com>2016-08-23 09:54:16 +0200
commit618c5fea43904bc800344d08e9c7dcce5f6840b7 (patch)
tree92993f9627089fd3071836278c05a4254446063a /include/svx/svdhlpln.hxx
parente0b61fdd35462ff679743dff1203fb5dd50e86a4 (diff)
convert SdrHelpLineKind to scoped enum
Change-Id: I640fc5497571f93068f613dff2f02e12848124f0
Diffstat (limited to 'include/svx/svdhlpln.hxx')
-rw-r--r--include/svx/svdhlpln.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/svx/svdhlpln.hxx b/include/svx/svdhlpln.hxx
index 25c46b0e9f8a..9bb995f70271 100644
--- a/include/svx/svdhlpln.hxx
+++ b/include/svx/svdhlpln.hxx
@@ -30,7 +30,7 @@
class OutputDevice;
-enum SdrHelpLineKind {SDRHELPLINE_POINT,SDRHELPLINE_VERTICAL,SDRHELPLINE_HORIZONTAL};
+enum class SdrHelpLineKind { Point, Vertical, Horizontal };
#define SDRHELPLINE_POINT_PIXELSIZE 15 /* Tatsaechliche Groesse= PIXELSIZE*2+1 */
@@ -39,7 +39,7 @@ class SdrHelpLine {
SdrHelpLineKind eKind;
public:
- explicit SdrHelpLine(SdrHelpLineKind eNewKind=SDRHELPLINE_POINT): eKind(eNewKind) {}
+ explicit SdrHelpLine(SdrHelpLineKind eNewKind=SdrHelpLineKind::Point): eKind(eNewKind) {}
SdrHelpLine(SdrHelpLineKind eNewKind, const Point& rNewPos): aPos(rNewPos), eKind(eNewKind) {}
bool operator==(const SdrHelpLine& rCmp) const { return aPos==rCmp.aPos && eKind==rCmp.eKind; }
bool operator!=(const SdrHelpLine& rCmp) const { return !operator==(rCmp); }