summaryrefslogtreecommitdiff
path: root/sd/source/ui/framework
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/framework')
-rw-r--r--sd/source/ui/framework/factories/Pane.cxx3
-rw-r--r--sd/source/ui/framework/factories/ViewShellWrapper.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/sd/source/ui/framework/factories/Pane.cxx b/sd/source/ui/framework/factories/Pane.cxx
index 0245cdbb357f..265eb5636952 100644
--- a/sd/source/ui/framework/factories/Pane.cxx
+++ b/sd/source/ui/framework/factories/Pane.cxx
@@ -151,8 +151,7 @@ sal_Int64 SAL_CALL Pane::getSomething (const Sequence<sal_Int8>& rId)
{
sal_Int64 nResult = 0;
- if (rId.getLength() == 16
- && memcmp(getUnoTunnelId().getConstArray(), rId.getConstArray(), 16) == 0)
+ if (isUnoTunnelId<Pane>(rId))
{
nResult = reinterpret_cast<sal_Int64>(this);
}
diff --git a/sd/source/ui/framework/factories/ViewShellWrapper.cxx b/sd/source/ui/framework/factories/ViewShellWrapper.cxx
index b63941541982..37cce7586b4f 100644
--- a/sd/source/ui/framework/factories/ViewShellWrapper.cxx
+++ b/sd/source/ui/framework/factories/ViewShellWrapper.cxx
@@ -225,8 +225,7 @@ sal_Int64 SAL_CALL ViewShellWrapper::getSomething (const Sequence<sal_Int8>& rId
{
sal_Int64 nResult = 0;
- if (rId.getLength() == 16
- && memcmp(getUnoTunnelId().getConstArray(), rId.getConstArray(), 16) == 0)
+ if (isUnoTunnelId<ViewShellWrapper>(rId))
{
nResult = reinterpret_cast<sal_Int64>(this);
}