Kaydet (Commit) 923452cf authored tarafından Thomas Arnhold's avatar Thomas Arnhold

OSL_TRACE: Use format string

üst 6e68468a
...@@ -63,7 +63,7 @@ TextLogger::TextLogger (void) ...@@ -63,7 +63,7 @@ TextLogger::TextLogger (void)
void TextLogger::AppendText (const char* sText) void TextLogger::AppendText (const char* sText)
{ {
OSL_TRACE (sText); OSL_TRACE("%s", sText);
if (mpEditWindow != NULL) if (mpEditWindow != NULL)
mpEditWindow->InsertText (UniString::CreateFromAscii(sText)); mpEditWindow->InsertText (UniString::CreateFromAscii(sText));
} }
...@@ -74,7 +74,7 @@ void TextLogger::AppendText (const char* sText) ...@@ -74,7 +74,7 @@ void TextLogger::AppendText (const char* sText)
void TextLogger::AppendText (const String& sText) void TextLogger::AppendText (const String& sText)
{ {
ByteString s(sText, RTL_TEXTENCODING_ISO_8859_1); ByteString s(sText, RTL_TEXTENCODING_ISO_8859_1);
OSL_TRACE (s.GetBuffer()); OSL_TRACE("%s", s.GetBuffer());
if (mpEditWindow != NULL) if (mpEditWindow != NULL)
mpEditWindow->InsertText (sText); mpEditWindow->InsertText (sText);
} }
......
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