Make sure to build with strict compile flags + port to no deprecated

method
wilder
Laurent Montel 8 years ago
parent faa477a915
commit c0ad3cab8f
  1. 6
      CMakeLists.txt
  2. 2
      src/kselectionproxymodel.cpp

@ -34,7 +34,11 @@ ecm_setup_version(PROJECT VARIABLE_PREFIX KITEMMODELS
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5ItemModelsConfigVersion.cmake"
SOVERSION 5)
add_definitions(-DQT_NO_CAST_FROM_ASCII)
add_definitions(-DQT_NO_CAST_TO_ASCII)
add_definitions(-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
add_definitions(-DQT_USE_QSTRINGBUILDER)
add_subdirectory(src)
if (BUILD_TESTING)
add_subdirectory(autotests)

@ -399,7 +399,7 @@ static QItemSelection kNormalizeSelection(QItemSelection selection)
}
RangeLessThan lt;
qSort(selection.begin(), selection.end(), lt);
std::sort(selection.begin(), selection.end(), lt);
return stableNormalizeSelection(selection);
}

Loading…
Cancel
Save