diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-03-25 10:06:12 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-03-25 16:17:06 +0100 |
commit | 6d24c8cf7751edf4809bc5f900d3e03af5251846 (patch) | |
tree | 0dd5aa79bebf5d737e0742adc52bf0552bbb9b77 /basic | |
parent | 78d7ea21f7c289be47df93fdb975dbccebc583c0 (diff) |
Adapt to sal/log.hxx
Change-Id: Ie90467573a2e0fb2da227c58ce2e89ab2318eb04
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/sbx/sbxvar.cxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/basic/source/sbx/sbxvar.cxx b/basic/source/sbx/sbxvar.cxx index 18c219b72e13..3b7b0807e228 100644 --- a/basic/source/sbx/sbxvar.cxx +++ b/basic/source/sbx/sbxvar.cxx @@ -444,16 +444,10 @@ void SbxVariable::SetParent( SbxObject* p ) bFound = ( this == pChildren->Get(nIdx) ); } } - if ( !bFound ) - { - OUString aMsg = "dangling: ["; - aMsg += GetName(); - aMsg += "].SetParent(["; - aMsg += p->GetName(); - aMsg += "])"; - OString aBStr(OUStringToOString(aMsg, RTL_TEXTENCODING_ASCII_US)); - DbgOut( aBStr.getStr(), DBG_OUT_WARNING, __FILE__, __LINE__); - } + SAL_WARN_IF( + !bFound, "basic.sbx", + "dangling: [" << GetName() << "].SetParent([" << p->GetName() + << "])"); } #endif |