From 7c8187750135ef3bf0f576ab16a169553eac079b Mon Sep 17 00:00:00 2001 From: Uwe Date: Sun, 13 Mar 2022 02:44:44 +0100 Subject: [PATCH] [Gui] UiLoader: fix compiler warning code by @wwmayer as discussed here: https://forum.freecadweb.org/viewtopic.php?f=4&t=66137&p=570597 and here: https://forum.freecadweb.org/viewtopic.php?p=578860#p578860 --- src/Gui/UiLoader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Gui/UiLoader.cpp b/src/Gui/UiLoader.cpp index d93d8aeecf..8a8860bf51 100644 --- a/src/Gui/UiLoader.cpp +++ b/src/Gui/UiLoader.cpp @@ -631,4 +631,6 @@ Py::Object UiLoaderPy::createWidget(const Py::Tuple& args) std::placeholders::_3)); } -#include "moc_UiLoader.cpp" +#if !defined (HAVE_QT_UI_TOOLS) +# include "moc_UiLoader.cpp" +#endif