Skip to content

Commit f8a414a

Browse files
committed
Fix build for Qt-5.6
1 parent b1b5a37 commit f8a414a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gcodeworkshop/src/documentmanager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
// As long as qAsConst is used.
3030
// IWYU pragma: no_include "type_traits"
3131
// IWYU pragma: no_include <type_traits>
32+
#if (QT_VERSION < QT_VERSION_CHECK(5, 7, 0))
33+
#define qAsConst(s) (s)
34+
#endif
3235

3336
#include <document.h> // for Document
3437
#include <documentinfo.h> // for DocumentInfo

0 commit comments

Comments
 (0)