From 900120caa98d3c7dc947f2bb1406f3a85eed3d8b Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 7 Nov 2010 20:51:58 +0000 Subject: Fix FTBFS git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1194000 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/translators/pilotdb/libflatfile/DB.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/translators/pilotdb') diff --git a/src/translators/pilotdb/libflatfile/DB.cpp b/src/translators/pilotdb/libflatfile/DB.cpp index 40e639a..0eee0e2 100644 --- a/src/translators/pilotdb/libflatfile/DB.cpp +++ b/src/translators/pilotdb/libflatfile/DB.cpp @@ -242,8 +242,8 @@ void PalmLib::FlatFile::DB::extract_listviews() kdDebug() << "list view is corrupt" << endl; } // Determine the length of the name string. - pi_char_t* null_ptr = reinterpret_cast - (memchr(chunk.data() + 4, 0, 32)); + pi_char_t* null_ptr = const_cast(reinterpret_cast + (memchr(chunk.data() + 4, 0, 32))); if (null_ptr) lv.name = std::string((char *) (chunk.data() + 4), null_ptr - (chunk.data() + 4)); -- cgit v1.2.1