diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-15 10:34:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-16 14:43:04 +0200 |
commit | 70e552065339f1f7ab14f991f3e840b5461e609e (patch) | |
tree | a4fbcac77284e42ba6f206dd307428718a69110d /include/editeng | |
parent | 03c77bbbed1e275bede8c6b2ca924eb3647d6f90 (diff) |
convert SvxURLFormat to scoped enum
Change-Id: Ie2199cf0bcfb6d649f8aa33325ab645b18e7c000
Reviewed-on: https://gerrit.libreoffice.org/42343
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 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/editeng/flditem.hxx b/include/editeng/flditem.hxx index faccf33224b9..d40f8e30766c 100644 --- a/include/editeng/flditem.hxx +++ b/include/editeng/flditem.hxx @@ -130,10 +130,11 @@ public: }; -enum SvxURLFormat { SVXURLFORMAT_APPDEFAULT = 0, // Set as in App - SVXURLFORMAT_URL, // Represent URL - SVXURLFORMAT_REPR // Constitute representation - }; +enum class SvxURLFormat { + AppDefault = 0, // Set as in App + Url, // Represent URL + Repr // Constitute representation +}; class EDITENG_DLLPUBLIC SvxURLField : public SvxFieldData { @@ -147,7 +148,7 @@ public: SV_DECL_PERSIST1( SvxURLField, css::text::textfield::Type::URL ) SvxURLField(); - SvxURLField( const OUString& rURL, const OUString& rRepres, SvxURLFormat eFmt = SVXURLFORMAT_URL ); + SvxURLField( const OUString& rURL, const OUString& rRepres, SvxURLFormat eFmt = SvxURLFormat::Url ); const OUString& GetURL() const { return aURL; } void SetURL( const OUString& rURL ) { aURL = rURL; } |