diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-11-07 20:51:58 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-11-07 20:51:58 +0000 |
commit | 900120caa98d3c7dc947f2bb1406f3a85eed3d8b (patch) | |
tree | 4371d450ad612e1affe558c1fa4edbb25adf30fd /src/translators/pilotdb | |
parent | 61d74eefcbd91fd61f5d875ff8dc960721feea4a (diff) | |
download | tellico-900120caa98d3c7dc947f2bb1406f3a85eed3d8b.tar.gz tellico-900120caa98d3c7dc947f2bb1406f3a85eed3d8b.zip |
Fix FTBFS
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1194000 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/translators/pilotdb')
-rw-r--r-- | src/translators/pilotdb/libflatfile/DB.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<pi_char_t*> - (memchr(chunk.data() + 4, 0, 32)); + pi_char_t* null_ptr = const_cast<pi_char_t*>(reinterpret_cast<const pi_char_t*> + (memchr(chunk.data() + 4, 0, 32))); if (null_ptr) lv.name = std::string((char *) (chunk.data() + 4), null_ptr - (chunk.data() + 4)); |