diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-15 10:26:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-15 12:05:23 +0200 |
commit | e45f61a5906cb84cdd895ef00648d5b7a6468ac5 (patch) | |
tree | c0b848bb9b21354802e8c80621d52f27167866f1 /include/editeng | |
parent | 2b825fe7f525ac017966044a1400d9095c8b7986 (diff) |
convert SvxFileType to scoped enum
Change-Id: Iec1c67f7f0f9b2244b1d6ef52921ddd09f944fbb
Reviewed-on: https://gerrit.libreoffice.org/42314
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.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/editeng/flditem.hxx b/include/editeng/flditem.hxx index 7d2d9cb689c3..faccf33224b9 100644 --- a/include/editeng/flditem.hxx +++ b/include/editeng/flditem.hxx @@ -289,7 +289,10 @@ public: }; -enum SvxFileType { SVXFILETYPE_FIX, SVXFILETYPE_VAR }; +enum class SvxFileType { + Fix, + Var +}; enum class SvxFileFormat { NameAndExt = 0, // File name with Extension PathFull, // full path @@ -309,7 +312,7 @@ public: SV_DECL_PERSIST1( SvxExtFileField, css::text::textfield::Type::EXTENDED_FILE ) SvxExtFileField(); explicit SvxExtFileField( const OUString& rString, - SvxFileType eType = SVXFILETYPE_VAR, + SvxFileType eType = SvxFileType::Var, SvxFileFormat eFormat = SvxFileFormat::PathFull ); const OUString& GetFile() const { return aFile; } |