summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/hldoctp.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-02 15:58:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-02 16:30:34 +0200
commit44b3e56bb4a4df59f53447c4ca4d8e02fe926206 (patch)
tree71a9efde3a6a2a00688e8feb8e3086cb32eceb4f /cui/source/dialogs/hldoctp.cxx
parent0b4965bcd7ec911951e7ca3a4cd48062843b2634 (diff)
Change INetProtocol to scoped enumeration
...and fix o3tl::enumarray::operator [] const overload Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
Diffstat (limited to 'cui/source/dialogs/hldoctp.cxx')
-rw-r--r--cui/source/dialogs/hldoctp.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx
index 2f5b8f7efb1a..12d73d1966ad 100644
--- a/cui/source/dialogs/hldoctp.cxx
+++ b/cui/source/dialogs/hldoctp.cxx
@@ -39,7 +39,7 @@ SvxHyperlinkDocTp::SvxHyperlinkDocTp ( vcl::Window *pParent, IconChoiceDialog* p
mbMarkWndOpen ( false )
{
get(m_pCbbPath, "path");
- m_pCbbPath->SetSmartProtocol(INET_PROT_FILE);
+ m_pCbbPath->SetSmartProtocol(INetProtocol::FILE);
get(m_pBtFileopen, "fileopen");
m_pBtFileopen->SetModeImage(Image(CUI_RES(RID_SVXBMP_FILEOPEN)));
get(m_pEdTarget, "target");
@@ -113,7 +113,7 @@ OUString SvxHyperlinkDocTp::GetCurrentURL ()
if ( aStrPath != aEmptyStr )
{
INetURLObject aURL( aStrPath );
- if ( aURL.GetProtocol() != INET_PROT_NOT_VALID ) // maybe the path is already a valid
+ if ( aURL.GetProtocol() != INetProtocol::NOT_VALID ) // maybe the path is already a valid
aStrURL = aStrPath; // hyperlink, then we can use this path directly
else
utl::LocalFileHelper::ConvertSystemPathToURL( aStrPath, aBaseURL, aStrURL );
@@ -341,7 +341,7 @@ void SvxHyperlinkDocTp::SetMarkStr ( const OUString& aStrMark )
SvxHyperlinkDocTp::EPathType SvxHyperlinkDocTp::GetPathType ( const OUString& rStrPath )
{
- INetURLObject aURL( rStrPath, INET_PROT_FILE );
+ INetURLObject aURL( rStrPath, INetProtocol::FILE );
if( aURL.HasError() )
return Type_Invalid;