summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/hldoctp.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-22 11:14:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-24 07:06:11 +0100
commit0e585562d7ae706c52c6d872690904012e79b3b6 (patch)
tree6fb1f82176903262b1cd221da8bb917b5ca45a20 /cui/source/dialogs/hldoctp.cxx
parentc9d4adb3cf08376ca1b5c7cef88340e294ca168f (diff)
convert EPathType to scoped enum
and drop unused values Change-Id: I0ba498d66702fb4bb4ff23fb4c42783fc1c83f75 Reviewed-on: https://gerrit.libreoffice.org/63907 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/dialogs/hldoctp.cxx')
-rw-r--r--cui/source/dialogs/hldoctp.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx
index e0dc67de6695..9c3033b693c7 100644
--- a/cui/source/dialogs/hldoctp.cxx
+++ b/cui/source/dialogs/hldoctp.cxx
@@ -233,7 +233,7 @@ IMPL_LINK_NOARG(SvxHyperlinkDocTp, ClickFileopenHdl_Impl, Button*, void)
IMPL_LINK_NOARG(SvxHyperlinkDocTp, ClickTargetHdl_Impl, Button*, void)
{
- if ( GetPathType ( maStrURL ) == Type_ExistsFile ||
+ if ( GetPathType ( maStrURL ) == EPathType::ExistsFile ||
maStrURL.isEmpty() ||
maStrURL.equalsIgnoreAsciiCase( sFileScheme ) ||
maStrURL.startsWith( sHash ) )
@@ -279,7 +279,7 @@ IMPL_LINK_NOARG(SvxHyperlinkDocTp, ModifiedPathHdl_Impl, Edit&, void)
IMPL_LINK_NOARG(SvxHyperlinkDocTp, TimeoutHdl_Impl, Timer *, void)
{
- if ( IsMarkWndVisible() && ( GetPathType( maStrURL )==Type_ExistsFile ||
+ if ( IsMarkWndVisible() && ( GetPathType( maStrURL )== EPathType::ExistsFile ||
maStrURL.isEmpty() ||
maStrURL.equalsIgnoreAsciiCase( sFileScheme ) ) )
{
@@ -347,9 +347,9 @@ SvxHyperlinkDocTp::EPathType SvxHyperlinkDocTp::GetPathType ( const OUString& rS
INetURLObject aURL( rStrPath, INetProtocol::File );
if( aURL.HasError() )
- return Type_Invalid;
+ return EPathType::Invalid;
else
- return Type_ExistsFile;
+ return EPathType::ExistsFile;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */