diff options
-rw-r--r-- | basic/source/uno/namecont.cxx | 1 | ||||
-rw-r--r-- | cui/source/dialogs/hldoctp.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/hlmailtp.cxx | 1 | ||||
-rw-r--r-- | include/tools/urlobj.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/doctempl.cxx | 3 | ||||
-rw-r--r-- | svtools/source/contnr/fileview.cxx | 2 | ||||
-rw-r--r-- | svtools/source/control/inettbc.cxx | 1 | ||||
-rw-r--r-- | svx/source/gallery2/galtheme.cxx | 1 | ||||
-rw-r--r-- | sw/source/ui/app/docsh2.cxx | 3 |
9 files changed, 1 insertions, 15 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index 2ce1cb97e243..f3b32d9866fa 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -1143,7 +1143,6 @@ void SfxLibraryContainer::init_Impl( const OUString& rInitialDocumentURL, if( aLibName == aStandardStr ) { SfxLibrary* pImplLib = getImplLib( aStandardStr ); - INetURLObject aStandardFolderInetObj( pImplLib->maStorageURL ); OUString aStandardFolder = pImplLib->maStorageURL; mxSFI->kill( aStandardFolder ); } diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx index 1353038d6095..865b0e54239d 100644 --- a/cui/source/dialogs/hldoctp.cxx +++ b/cui/source/dialogs/hldoctp.cxx @@ -93,8 +93,6 @@ SvxHyperlinkDocTp::~SvxHyperlinkDocTp () void SvxHyperlinkDocTp::FillDlgFields(const OUString& rStrURL) { - INetURLObject aURL(rStrURL); - sal_Int32 nPos = rStrURL.indexOf(sHash); // path maCbbPath.SetText ( rStrURL.copy( 0, ( nPos == -1 ? rStrURL.getLength() : nPos ) ) ); diff --git a/cui/source/dialogs/hlmailtp.cxx b/cui/source/dialogs/hlmailtp.cxx index 0fa2688dde00..cfc990a7a6e4 100644 --- a/cui/source/dialogs/hlmailtp.cxx +++ b/cui/source/dialogs/hlmailtp.cxx @@ -94,7 +94,6 @@ SvxHyperlinkMailTp::~SvxHyperlinkMailTp () void SvxHyperlinkMailTp::FillDlgFields(const OUString& rStrURL) { - INetURLObject aURL(rStrURL); OUString aStrScheme = GetSchemeFromURL(rStrURL); // set URL-field and additional controls diff --git a/include/tools/urlobj.hxx b/include/tools/urlobj.hxx index 53ea84cad777..88b8ecd20caa 100644 --- a/include/tools/urlobj.hxx +++ b/include/tools/urlobj.hxx @@ -105,7 +105,7 @@ enum INetProtocol INET_PROT_END = 35 }; -class TOOLS_DLLPUBLIC INetURLObject +class TOOLS_DLLPUBLIC SAL_WARN_UNUSED INetURLObject { public: // Get- and Set-Methods: diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx index e52d6c5dd156..ccb9f2626504 100644 --- a/sfx2/source/doc/doctempl.cxx +++ b/sfx2/source/doc/doctempl.cxx @@ -607,9 +607,6 @@ sal_Bool SfxDocumentTemplates::CopyOrMove aTitle, pSource->GetTargetURL() ) ) { - - INetURLObject aSourceObj( pSource->GetTargetURL() ); - OUString aNewTargetURL = GetTemplateTargetURLFromComponent( pTargetRgn->GetTitle(), aTitle ); if ( aNewTargetURL.isEmpty() ) return sal_False; diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx index 97d2df300f0d..1b5df886088a 100644 --- a/svtools/source/contnr/fileview.cxx +++ b/svtools/source/contnr/fileview.cxx @@ -2446,8 +2446,6 @@ OUString SvtFileView_Impl::FolderInserted( const OUString& rURL, const OUString& pData->mbIsFolder = sal_True; pData->maTargetURL = rURL; - INetURLObject aURLObj( rURL ); - ::svtools::VolumeInfo aVolInfo; pData->maType = SvFileInformationManager::GetFolderDescription( aVolInfo ); pData->maImage = SvFileInformationManager::GetFolderImage( aVolInfo, sal_False ); diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx index f87f783765ab..362394c590dd 100644 --- a/svtools/source/control/inettbc.cxx +++ b/svtools/source/control/inettbc.cxx @@ -478,7 +478,6 @@ OUString SvtURLBox::ParseSmart( OUString aText, OUString aBaseURL, const OUStrin if( !SvtURLBox_Impl::TildeParsing( aText, aBaseURL ) ) return OUString(); - INetURLObject aURLObject; if( !aBaseURL.isEmpty() ) { INetProtocol eBaseProt = INetURLObject::CompareProtocolScheme( aBaseURL ); diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx index e52fafc50d7b..d82d74302ac2 100644 --- a/svx/source/gallery2/galtheme.cxx +++ b/svx/source/gallery2/galtheme.cxx @@ -1291,7 +1291,6 @@ SvStream& GalleryTheme::WriteData( SvStream& rOStm ) const { const INetURLObject aRelURL1( GetParent()->GetRelativeURL() ); const INetURLObject aRelURL2( GetParent()->GetUserURL() ); - INetURLObject aNewURL, aTempURL; sal_uInt32 nCount = GetObjectCount(); sal_Bool bRel; diff --git a/sw/source/ui/app/docsh2.cxx b/sw/source/ui/app/docsh2.cxx index 05bbbafb7573..4e449e198d5b 100644 --- a/sw/source/ui/app/docsh2.cxx +++ b/sw/source/ui/app/docsh2.cxx @@ -1388,9 +1388,6 @@ sal_uLong SwDocShell::LoadStylesFromFile( const OUString& rURL, { sal_uLong nErr = 0; - // Create a URL from filename - INetURLObject aURLObj( rURL ); - // Set filter: OUString sFactory(OUString::createFromAscii(SwDocShell::Factory().GetShortName())); SfxFilterMatcher aMatcher( sFactory ); |