loplugin:passparamsbyref
Change-Id: I9ad592670399f25eeaea375bf71e6d30ee20118f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176763 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
This commit is contained in:
parent
d991795635
commit
256463f132
2 changed files with 8 additions and 7 deletions
|
@ -14,9 +14,9 @@
|
|||
|
||||
std::map<css::accessibility::XAccessible*, LoAccessible*> GtkAccessibleRegistry::m_aMapping = {};
|
||||
|
||||
LoAccessible*
|
||||
GtkAccessibleRegistry::getLOAccessible(css::uno::Reference<css::accessibility::XAccessible> xAcc,
|
||||
GdkDisplay* pDisplay, GtkAccessible* pParent)
|
||||
LoAccessible* GtkAccessibleRegistry::getLOAccessible(
|
||||
css::uno::Reference<css::accessibility::XAccessible> const& xAcc, GdkDisplay* pDisplay,
|
||||
GtkAccessible* pParent)
|
||||
{
|
||||
if (!xAcc.is())
|
||||
return nullptr;
|
||||
|
@ -48,7 +48,7 @@ GtkAccessibleRegistry::getLOAccessible(css::uno::Reference<css::accessibility::X
|
|||
return pLoAccessible;
|
||||
}
|
||||
|
||||
void GtkAccessibleRegistry::remove(css::uno::Reference<css::accessibility::XAccessible> xAcc)
|
||||
void GtkAccessibleRegistry::remove(css::uno::Reference<css::accessibility::XAccessible> const& xAcc)
|
||||
{
|
||||
assert(xAcc.is());
|
||||
m_aMapping.erase(xAcc.get());
|
||||
|
|
|
@ -23,10 +23,11 @@ private:
|
|||
|
||||
public:
|
||||
/** Returns the related LoAccessible* for the XAccessible. Creates a new one if none exists yet. */
|
||||
static LoAccessible* getLOAccessible(css::uno::Reference<css::accessibility::XAccessible> xAcc,
|
||||
GdkDisplay* pDisplay, GtkAccessible* pParent = nullptr);
|
||||
static LoAccessible*
|
||||
getLOAccessible(css::uno::Reference<css::accessibility::XAccessible> const& xAcc,
|
||||
GdkDisplay* pDisplay, GtkAccessible* pParent = nullptr);
|
||||
/** Removes the entry for the given XAccessible. */
|
||||
static void remove(css::uno::Reference<css::accessibility::XAccessible> xAcc);
|
||||
static void remove(css::uno::Reference<css::accessibility::XAccessible> const& xAcc);
|
||||
};
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
Loading…
Reference in a new issue