summaryrefslogtreecommitdiff
path: root/include/sfx2/sidebar/SidebarController.hxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-11-18 10:10:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-24 09:45:04 +0100
commitbb06f51308428500c9c8d11ae05f0aa03ecc179c (patch)
treeb18620e8572ed6d4c43c8605660d59f5f7a7e531 /include/sfx2/sidebar/SidebarController.hxx
parent42e8e16cf93dcf944e5c1106f76aaa32057c0397 (diff)
loplugin:stringviewparam extend to comparison operators
which means that some call sites have to change to use unicode string literals i.e. u"foo" instead of "foo" Change-Id: Ie51c3adf56d343dd1d1710777f9d2a43ee66221c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106125 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2/sidebar/SidebarController.hxx')
-rw-r--r--include/sfx2/sidebar/SidebarController.hxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/sfx2/sidebar/SidebarController.hxx b/include/sfx2/sidebar/SidebarController.hxx
index cd4f329e99d9..490367caba91 100644
--- a/include/sfx2/sidebar/SidebarController.hxx
+++ b/include/sfx2/sidebar/SidebarController.hxx
@@ -113,7 +113,7 @@ public:
const static sal_Int32 SwitchFlag_ForceNewDeck = 0x02;
const static sal_Int32 SwitchFlag_ForceNewPanels = 0x02;
- void OpenThenSwitchToDeck(const OUString& rsDeckId);
+ void OpenThenSwitchToDeck(std::u16string_view rsDeckId);
void OpenThenToggleDeck(const OUString& rsDeckId);
/** Show only the tab bar, not the deck.
@@ -126,7 +126,7 @@ public:
/** Returns true when the given deck is the currently visible deck
*/
- bool IsDeckVisible(const OUString& rsDeckId);
+ bool IsDeckVisible(std::u16string_view rsDeckId);
bool IsDeckOpen(const sal_Int32 nIndex = -1);
@@ -140,18 +140,18 @@ public:
const Context& GetCurrentContext() const { return maCurrentContext;}
bool IsDocumentReadOnly (void) const { return mbIsDocumentReadOnly;}
- void SwitchToDeck(const OUString& rsDeckId);
+ void SwitchToDeck(std::u16string_view rsDeckId);
void SwitchToDefaultDeck();
bool WasFloatingDeckClosed() const { return mbFloatingDeckClosed; }
void SetFloatingDeckClosed(bool bWasClosed) { mbFloatingDeckClosed = bWasClosed; }
- void CreateDeck(const OUString& rDeckId);
- void CreateDeck(const OUString& rDeckId, const Context& rContext, bool bForceCreate = false);
+ void CreateDeck(std::u16string_view rDeckId);
+ void CreateDeck(std::u16string_view rDeckId, const Context& rContext, bool bForceCreate = false);
ResourceManager::DeckContextDescriptorContainer GetMatchingDecks();
- ResourceManager::PanelContextDescriptorContainer GetMatchingPanels(const OUString& rDeckId);
+ ResourceManager::PanelContextDescriptorContainer GetMatchingPanels(std::u16string_view rDeckId);
- void notifyDeckTitle(const OUString& targetDeckId);
+ void notifyDeckTitle(std::u16string_view targetDeckId);
void updateModel(const css::uno::Reference<css::frame::XModel>& xModel);
@@ -232,10 +232,10 @@ private:
const Context& rContext);
void CreatePanels(
- const OUString& rDeckId,
+ std::u16string_view rDeckId,
const Context& rContext);
VclPtr<Panel> CreatePanel (
- const OUString& rsPanelId,
+ std::u16string_view rsPanelId,
vcl::Window* pParentWindow,
const bool bIsInitiallyExpanded,
const Context& rContext,