From 44b3e56bb4a4df59f53447c4ca4d8e02fe926206 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 2 Apr 2015 15:58:06 +0200 Subject: Change INetProtocol to scoped enumeration ...and fix o3tl::enumarray::operator [] const overload Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b --- basctl/source/basicide/baside2b.cxx | 2 +- basctl/source/basicide/moduldl2.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 4cb705d730f7..007d39537d63 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -292,7 +292,7 @@ OUString EditorWindow::GetWordAtCursor() { OUString aURL( URIHelper::FindFirstURLInText( aText, nStart, nEnd, aClass ) ); INetURLObject aURLObj( aURL ); - if ( aURLObj.GetProtocol() == INET_PROT_VND_SUN_STAR_HELP + if ( aURLObj.GetProtocol() == INetProtocol::VND_SUN_STAR_HELP && nSelStart >= nStart && nSelStart <= nEnd && nSelEnd >= nStart && nSelEnd <= nEnd ) { aWord = aURL; diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index 4f2b2c55014b..058fd97e3ab2 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -1269,7 +1269,7 @@ void LibPage::ExportAsBasic( const OUString& aLibName ) if( aPath.isEmpty() ) aPath = SvtPathOptions().GetWorkPath(); - // INetURLObject aURL(m_sSavePath, INET_PROT_FILE); + // INetURLObject aURL(m_sSavePath, INetProtocol::FILE); xFolderPicker->setDisplayDirectory( aPath ); short nRet = xFolderPicker->execute(); if( nRet == RET_OK ) -- cgit