summaryrefslogtreecommitdiff
path: root/testtools/source/bridgetest/currentcontextchecker.cxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2011-01-19 12:24:32 +0100
committerIvo Hinkelmann <ihi@openoffice.org>2011-01-19 12:24:32 +0100
commit67dd442a070c012655dd9c727bca61566fab75b8 (patch)
treecc7e723f3ea1b8637ca3eb81ca21c055174f88da /testtools/source/bridgetest/currentcontextchecker.cxx
parent81a1e2267f8ff50e72d7883d76de7f3a074f5a6a (diff)
parent6fdbd7bf226e9bfa261ab266397ff11fb334122a (diff)
CWS-TOOLING: integrate CWS sb135
Notes
Notes: split repo tag: testing_ooo/DEV300_m98
Diffstat (limited to 'testtools/source/bridgetest/currentcontextchecker.cxx')
-rw-r--r--testtools/source/bridgetest/currentcontextchecker.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/testtools/source/bridgetest/currentcontextchecker.cxx b/testtools/source/bridgetest/currentcontextchecker.cxx
index 3da2d74e9d2b..e7e4ec858b7b 100644
--- a/testtools/source/bridgetest/currentcontextchecker.cxx
+++ b/testtools/source/bridgetest/currentcontextchecker.cxx
@@ -50,8 +50,8 @@ namespace {
namespace css = ::com::sun::star;
-static char const key[] = "testtools.bridgetest.Key";
-static char const value[] = "good";
+static char const KEY[] = "testtools.bridgetest.Key";
+static char const VALUE[] = "good";
class CurrentContext:
public ::osl::DebugBase< CurrentContext >,
@@ -77,8 +77,8 @@ CurrentContext::~CurrentContext() {}
css::uno::Any CurrentContext::getValueByName(::rtl::OUString const & Name)
throw (css::uno::RuntimeException)
{
- return Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(key))
- ? css::uno::makeAny(::rtl::OUString::createFromAscii(value))
+ return Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(KEY))
+ ? css::uno::makeAny(::rtl::OUString::createFromAscii(VALUE))
: css::uno::Any();
}
@@ -115,13 +115,13 @@ bool testtools::bridgetest::CurrentContextChecker::performCheck(
return false;
}
css::uno::Any a(
- context->getValueByName(::rtl::OUString::createFromAscii(key)));
+ context->getValueByName(::rtl::OUString::createFromAscii(KEY)));
if (a.getValueType() != ::cppu::UnoType< ::rtl::OUString >::get()) {
return false;
}
::rtl::OUString s;
OSL_VERIFY(a >>= s);
- return s.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(value));
+ return s.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(VALUE));
} else {
return other->perform(
this, setSteps >= 0 ? setSteps - 1 : -1, checkSteps - 1);