cppcheck: unreadVariable

Defined the aStr within the #ifdef block where it is used.

Change-Id: I2878d2db002411783e814b0ecf02e2a030d2d6d4
This commit is contained in:
jailletc36
2012-10-07 12:28:47 +02:00
committed by Muthu Subramanian
parent b5b3570d9d
commit 1fb40dafbe

View File

@@ -224,15 +224,14 @@ void OOXMLFastHelper<T>::mark(OOXMLFastContextHandler * pHandler,
{
OOXMLValue::Pointer_t pVal(new T(rValue));
#ifdef DEBUG_HELPER
string aStr = (*QNameToString::Instance())(nId);
#ifdef DEBUG_HELPER
debug_logger->startElement("helper.mark");
debug_logger->attribute("name", aStr);
debug_logger->attribute
("value",
OUStringToOString
(rValue, RTL_TEXTENCODING_ASCII_US).getStr());
debug_logger->attribute("value",
OUStringToOString
(rValue, RTL_TEXTENCODING_ASCII_US).getStr());
if (aStr.empty())
debug_logger->element("unknown-qname");