Commit c698d00e authored by Alexander Stippich's avatar Alexander Stippich

Check for DQT_NO_CAST_FROM_BYTEARRAY

Summary: add the build flag and fix all errors

Reviewers: bruns

Reviewed By: bruns

Subscribers: #baloo

Tags: #baloo

Differential Revision: https://phabricator.kde.org/D22159
parent 48c2cb91
......@@ -28,9 +28,6 @@ include(ECMGenerateHeaders)
include(ECMAddTests)
include(CMakePackageConfigHelpers)
#TODO remove these
remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY)
ecm_setup_version(PROJECT
VARIABLE_PREFIX BALOO_WIDGETS
SOVERSION 5
......
......@@ -496,7 +496,7 @@ int FileMetaDataProvider::subDirectoriesCount(const QString& path)
// Copyright (C) 2006 David Faure <faure@kde.org>
int count = -1;
DIR* dir = ::opendir(QFile::encodeName(path));
DIR* dir = ::opendir(QFile::encodeName(path).constData());
if (dir) {
count = 0;
struct dirent *dirEntry = nullptr;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment