summaryrefslogtreecommitdiff
path: root/OPJViewer/source/imagj2k.cpp
diff options
context:
space:
mode:
authorGiuseppe Baruffa <gbaruffa@users.noreply.github.com>2007-03-29 08:27:03 +0000
committerGiuseppe Baruffa <gbaruffa@users.noreply.github.com>2007-03-29 08:27:03 +0000
commita1fe5809a4760ed2aa64951c596156f48fca393e (patch)
tree68066e08142f30f5e9ad07e24f40d60f779b6bf3 /OPJViewer/source/imagj2k.cpp
parent5a3c1ffe7d5b4269d073fa826cba94591c0c3ed5 (diff)
Some coding style adaptations for compiling the OPJViewer GUI under Linux. It compiles, but does not yet display images.
Diffstat (limited to 'OPJViewer/source/imagj2k.cpp')
-rw-r--r--OPJViewer/source/imagj2k.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/OPJViewer/source/imagj2k.cpp b/OPJViewer/source/imagj2k.cpp
index 9f972095..4a7ed492 100644
--- a/OPJViewer/source/imagj2k.cpp
+++ b/OPJViewer/source/imagj2k.cpp
@@ -82,35 +82,29 @@ IMPLEMENT_DYNAMIC_CLASS(wxJ2KHandler,wxImageHandler)
/* sample error callback expecting a FILE* client object */
void j2k_error_callback(const char *msg, void *client_data) {
- char m_msg[MAX_MESSAGE_LEN];
int message_len = strlen(msg) - 1;
if (msg[message_len] != '\n')
message_len = MAX_MESSAGE_LEN;
- sprintf(m_msg, "[ERROR] %.*s", message_len, msg);
wxMutexGuiEnter();
- wxLogMessage(m_msg);
+ wxLogMessage(wxT("[ERROR] %.*s"), message_len, msg);
wxMutexGuiLeave();
}
/* sample warning callback expecting a FILE* client object */
void j2k_warning_callback(const char *msg, void *client_data) {
- char m_msg[MAX_MESSAGE_LEN];
int message_len = strlen(msg) - 1;
if (msg[message_len] != '\n')
message_len = MAX_MESSAGE_LEN;
- sprintf(m_msg, "[WARNING] %.*s", message_len, msg);
wxMutexGuiEnter();
- wxLogMessage(m_msg);
+ wxLogMessage(wxT("[WARNING] %.*s"), message_len, msg);
wxMutexGuiLeave();
}
/* sample debug callback expecting no client object */
void j2k_info_callback(const char *msg, void *client_data) {
- char m_msg[MAX_MESSAGE_LEN];
int message_len = strlen(msg) - 1;
if (msg[message_len] != '\n')
message_len = MAX_MESSAGE_LEN;
- sprintf(m_msg, "[INFO] %.*s", message_len, msg);
wxMutexGuiEnter();
- wxLogMessage(m_msg);
+ wxLogMessage(wxT("[INFO] %.*s"), message_len, msg);
wxMutexGuiLeave();
}