summaryrefslogtreecommitdiff
path: root/include/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-15 09:55:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-15 11:27:50 +0200
commit359201c9b4ad26fd445688de2c9a1d15f253d37d (patch)
treef5e10b077d8965a88d4bd3646217f1bfbfac2f8b /include/editeng
parent8c3b410ae36d3d82e455180c6acbf23f434d6108 (diff)
convert SvxAuthorType to scoped enum
Change-Id: I990eb35c883ddd417751487435556f584e956374 Reviewed-on: https://gerrit.libreoffice.org/42312 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng')
-rw-r--r--include/editeng/flditem.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/editeng/flditem.hxx b/include/editeng/flditem.hxx
index b86916aa59f2..50956528dcef 100644
--- a/include/editeng/flditem.hxx
+++ b/include/editeng/flditem.hxx
@@ -327,7 +327,9 @@ public:
};
-enum SvxAuthorType { SVXAUTHORTYPE_FIX, SVXAUTHORTYPE_VAR };
+enum class SvxAuthorType {
+ Fix, Var
+};
enum class SvxAuthorFormat {
FullName, // full name
LastName, // Only Last name
@@ -350,7 +352,7 @@ public:
const OUString& rFirstName,
const OUString& rLastName,
const OUString& rShortName,
- SvxAuthorType eType = SVXAUTHORTYPE_VAR,
+ SvxAuthorType eType = SvxAuthorType::Var,
SvxAuthorFormat eFormat = SvxAuthorFormat::FullName );
SvxAuthorType GetType() const { return eType; }