diff options
Diffstat (limited to 'odk/examples/cpp/complextoolbarcontrols/MyListener.cxx')
-rw-r--r-- | odk/examples/cpp/complextoolbarcontrols/MyListener.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/odk/examples/cpp/complextoolbarcontrols/MyListener.cxx b/odk/examples/cpp/complextoolbarcontrols/MyListener.cxx index 73934563ad55..ec90afbbaa33 100644 --- a/odk/examples/cpp/complextoolbarcontrols/MyListener.cxx +++ b/odk/examples/cpp/complextoolbarcontrols/MyListener.cxx @@ -63,7 +63,7 @@ css::uno::Any SAL_CALL MyListener::execute(const css::uno::Sequence< css::beans: const css::beans::NamedValue* p = lArguments.getConstArray(); for (i=0; i<c; ++i) { - if (p[i].Name.equalsAscii("Environment")) + if (p[i].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Environment"))) { p[i].Value >>= lEnv; break; @@ -76,12 +76,12 @@ css::uno::Any SAL_CALL MyListener::execute(const css::uno::Sequence< css::beans: p = lEnv.getConstArray(); for (i=0; i<c; ++i) { - if (p[i].Name.equalsAscii("Model")) + if (p[i].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Model"))) { p[i].Value >>= xModel; break; } - if (p[i].Name.equalsAscii("Frame")) + if (p[i].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Frame"))) { css::uno::Reference< css::frame::XController > xController; css::uno::Reference< css::frame::XFrame > xFrame; |