diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,9 +28,6 @@ include(ECMAddTests) include(CMakePackageConfigHelpers) -#TODO remove these -remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY) - ecm_setup_version(PROJECT VARIABLE_PREFIX BALOO_WIDGETS SOVERSION 5 diff --git a/src/filemetadataprovider.cpp b/src/filemetadataprovider.cpp --- a/src/filemetadataprovider.cpp +++ b/src/filemetadataprovider.cpp @@ -496,7 +496,7 @@ // Copyright (C) 2006 David Faure int count = -1; - DIR* dir = ::opendir(QFile::encodeName(path)); + DIR* dir = ::opendir(QFile::encodeName(path).constData()); if (dir) { count = 0; struct dirent *dirEntry = nullptr;