summaryrefslogtreecommitdiffstats
path: root/kdecore/ksycoca.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdecore/ksycoca.cpp')
-rw-r--r--kdecore/ksycoca.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/kdecore/ksycoca.cpp b/kdecore/ksycoca.cpp
index a3d017f9a..f6b9ffa6a 100644
--- a/kdecore/ksycoca.cpp
+++ b/kdecore/ksycoca.cpp
@@ -233,10 +233,7 @@ void KSycoca::closeDatabase()
if (device && m_sycoca_mmap)
{
TQBuffer *buf = (TQBuffer *) device;
-#ifdef USE_QT4
- static_cast<TQByteArray&>
-#endif // USE_QT4
- (buf->buffer()).resetRawData(m_sycoca_mmap, m_sycoca_size);
+ buf->buffer().resetRawData(m_sycoca_mmap, m_sycoca_size);
// Solaris has munmap(char*, size_t) and everything else should
// be happy with a char* for munmap(void*, size_t)
munmap((char*) m_sycoca_mmap, m_sycoca_size);