From 70e552065339f1f7ab14f991f3e840b5461e609e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 15 Sep 2017 10:34:59 +0200 Subject: convert SvxURLFormat to scoped enum Change-Id: Ie2199cf0bcfb6d649f8aa33325ab645b18e7c000 Reviewed-on: https://gerrit.libreoffice.org/42343 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/editeng/flditem.hxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'include/editeng/flditem.hxx') 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; } -- cgit fice-6-1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2012-04-08gbuild: "use" vs. "add":Michael Stahl