Kaydet (Commit) a1a8654c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

cppu: Use appropriate OUString functions on string constants

Change-Id: Id1d763c83821b7af6c541cb28ff438765026ea4d
üst 0e7804b8
...@@ -330,18 +330,18 @@ bool AffineBridge::v_isValid(rtl::OUString * pReason) ...@@ -330,18 +330,18 @@ bool AffineBridge::v_isValid(rtl::OUString * pReason)
{ {
bool result = m_enterCount > 0; bool result = m_enterCount > 0;
if (!result) if (!result)
*pReason = rtl::OUString("not entered"); *pReason = "not entered";
else else
{ {
result = m_innerThreadId == osl::Thread::getCurrentIdentifier(); result = m_innerThreadId == osl::Thread::getCurrentIdentifier();
if (!result) if (!result)
*pReason = rtl::OUString("wrong thread"); *pReason = "wrong thread";
} }
if (result) if (result)
*pReason = rtl::OUString("OK"); *pReason = "OK";
return result; return result;
} }
......
...@@ -112,18 +112,18 @@ bool LogBridge::v_isValid(rtl::OUString * pReason) ...@@ -112,18 +112,18 @@ bool LogBridge::v_isValid(rtl::OUString * pReason)
bool result = m_count > 0; bool result = m_count > 0;
if (!result) if (!result)
{ {
*pReason = rtl::OUString("not entered"); *pReason = "not entered";
} }
else else
{ {
result = m_threadId == osl::Thread::getCurrentIdentifier(); result = m_threadId == osl::Thread::getCurrentIdentifier();
if (!result) if (!result)
*pReason = rtl::OUString("wrong thread"); *pReason = "wrong thread";
} }
if (result) if (result)
*pReason = rtl::OUString("OK"); *pReason = "OK";
return result; return result;
} }
......
...@@ -123,18 +123,18 @@ bool UnsafeBridge::v_isValid(rtl::OUString * pReason) ...@@ -123,18 +123,18 @@ bool UnsafeBridge::v_isValid(rtl::OUString * pReason)
bool result = m_count > 0; bool result = m_count > 0;
if (!result) if (!result)
{ {
*pReason = rtl::OUString("not entered"); *pReason = "not entered";
} }
else else
{ {
result = m_threadId == osl::Thread::getCurrentIdentifier(); result = m_threadId == osl::Thread::getCurrentIdentifier();
if (!result) if (!result)
*pReason = rtl::OUString("wrong thread"); *pReason = "wrong thread";
} }
if (result) if (result)
*pReason = rtl::OUString("OK"); *pReason = "OK";
return result; return result;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment