diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-15 13:42:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-16 08:56:26 +0200 |
commit | 4dc748525c5280b821ee07fbb82ac42147352d31 (patch) | |
tree | f0b31c718af86657ed444b1c18d1739e106f7273 | |
parent | 01caa0ffbca6f1ee30cf0f25d2e462b12cb7535c (diff) |
loplugin:returnconstant in ScContentTree
Change-Id: Ib3aab99712e40f0b5482f87aaf37d228a72f3684
Reviewed-on: https://gerrit.libreoffice.org/59132
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | sc/source/ui/inc/content.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/navipi/content.cxx | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/ui/inc/content.hxx b/sc/source/ui/inc/content.hxx index 17f83be89d94..7aad4b005442 100644 --- a/sc/source/ui/inc/content.hxx +++ b/sc/source/ui/inc/content.hxx @@ -139,7 +139,7 @@ public: void ActiveDocChanged(); void ResetManualDoc(); void SetManualDoc(const OUString& rName); - bool LoadFile(const OUString& rUrl); + void LoadFile(const OUString& rUrl); void SelectDoc(const OUString& rName); void SelectEntryByName(const ScContentId nRoot, const OUString& rName); diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx index 9d811e341c50..f06dc527471b 100644 --- a/sc/source/ui/navipi/content.cxx +++ b/sc/source/ui/navipi/content.cxx @@ -1462,7 +1462,7 @@ IMPL_LINK_NOARG(ScContentTree, ExecDragHdl, void*, void) DoDrag(); } -bool ScContentTree::LoadFile( const OUString& rUrl ) +void ScContentTree::LoadFile( const OUString& rUrl ) { OUString aDocName = rUrl; sal_Int32 nPos = aDocName.indexOf('#'); @@ -1487,8 +1487,6 @@ bool ScContentTree::LoadFile( const OUString& rUrl ) } // document is closed again by ScDocumentLoader in dtor - - return false; } void ScContentTree::InitWindowBits( bool bButtons ) |