summaryrefslogtreecommitdiffstats
path: root/kviewshell/plugins/djvu/libdjvu/DjVuAnno.cpp
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-06 22:03:48 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-06 22:03:48 +0000
commit0f962a277e58ccb2c6d9ee36ce68966db9b071cc (patch)
treee5341e2fcac3338daf25796bc20ae8c16307673e /kviewshell/plugins/djvu/libdjvu/DjVuAnno.cpp
parent19158a8de8416c95f7c961e107c475dd786f6449 (diff)
downloadtdegraphics-0f962a277e58ccb2c6d9ee36ce68966db9b071cc.tar.gz
tdegraphics-0f962a277e58ccb2c6d9ee36ce68966db9b071cc.zip
[kdegraphics] cmake support for kamera, kcoloredit, and kviewshell
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1230743 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kviewshell/plugins/djvu/libdjvu/DjVuAnno.cpp')
-rw-r--r--kviewshell/plugins/djvu/libdjvu/DjVuAnno.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuAnno.cpp b/kviewshell/plugins/djvu/libdjvu/DjVuAnno.cpp
index a6772e61..7cece60b 100644
--- a/kviewshell/plugins/djvu/libdjvu/DjVuAnno.cpp
+++ b/kviewshell/plugins/djvu/libdjvu/DjVuAnno.cpp
@@ -241,8 +241,8 @@ GLObject::print(ByteStream & str, int compact, int indent, int * cur_pos) const
else
{
char buf[8];
- static char *tr1 = "\"\\tnrbf";
- static char *tr2 = "\"\\\t\n\r\b\f";
+ static const char *tr1 = "\"\\tnrbf";
+ static const char *tr2 = "\"\\\t\n\r\b\f";
sprintf(buf,"\\%03o", (int)(((unsigned char*)data)[span]));
for (int i=0; tr2[i]; i++)
if (data[span] == tr2[i])
@@ -472,8 +472,8 @@ GLParser::get_token(const char * & start)
}
else
{
- static char *tr1 = "tnrbfva";
- static char *tr2 = "\t\n\r\b\f\013\007";
+ const static char *tr1 = "tnrbfva";
+ const static char *tr2 = "\t\n\r\b\f\013\007";
for (int i=0; tr1[i]; i++)
if (c == tr1[i])
c = tr2[i];