Skip to content

Commit

Permalink
Fix Qt4 build
Browse files Browse the repository at this point in the history
  • Loading branch information
vkrause committed Jul 20, 2018
1 parent 471cb3c commit bf2d8a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions 3rdparty/kuserfeedback/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ set(gammaray_userfeedback_srcs
common/surveytargetexpressionparser_p.cpp
core/abstractdatasource.cpp
core/applicationversionsource.cpp
core/auditloguicontroller.cpp
core/compilerinfosource.cpp
core/feedbackconfiguicontroller.cpp
core/openglinfosource.cpp
Expand All @@ -17,11 +16,16 @@ set(gammaray_userfeedback_srcs
core/startcountsource.cpp
core/surveyinfo.cpp
core/usagetimesource.cpp
widgets/auditlogbrowserdialog.cpp
widgets/feedbackconfigdialog.cpp
widgets/feedbackconfigwidget.cpp
widgets/notificationpopup.cpp
)
if (Qt5Core_FOUND)
list(APPEND gammaray_userfeedback_srcs
core/auditloguicontroller.cpp
widgets/auditlogbrowserdialog.cpp
)
endif()

add_library(gammaray_kuserfeedback SHARED ${gammaray_userfeedback_srcs})
# Disable warnings for generated stuff
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/kuserfeedback/core/auditloguicontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ QString AuditLogUiController::logEntry(const QDateTime &dt) const
entries.push_back(e);
}

std::sort(entries.begin(), entries.end(), [](const Entry &lhs, const Entry &rhs) {
std::sort(entries.begin(), entries.end(), [](const Entry &lhs, const Entry &rhs) -> bool {
if (lhs.mode == rhs.mode)
return lhs.key < rhs.key;
return lhs.mode < rhs.mode;
Expand Down

0 comments on commit bf2d8a1

Please sign in to comment.