On Sun, Nov 17, 2024 at 12:12:11PM +0100, Lorenzo Bertini wrote:
> Dear devs,
> when trying to port LyX to yet another build system I found that
> src/frontends/GuiClipboard.h is missing <string> and "support/docstring.h",
> and GuiSearch.h only "support/docstring.h". I don't exactly know how
> autotools manages to build anyway, but the files use std::string and
> docstring without including, so maybe they should include.

My doing, indeed I was expecting this might break on some different
setup. What exactly is your "build environment"?

Is this patch enough?

Pavel
diff --git a/src/frontends/qt/GuiClipboard.h b/src/frontends/qt/GuiClipboard.h
index cdd4e85afb..c13e027c17 100644
--- a/src/frontends/qt/GuiClipboard.h
+++ b/src/frontends/qt/GuiClipboard.h
@@ -15,6 +15,7 @@
 #define GUICLIPBOARD_H
 
 #include "frontends/Clipboard.h"
+#include "support/docstring.h"
 
 #include <QMimeData>
 #include <QObject>
diff --git a/src/frontends/qt/GuiSearch.h b/src/frontends/qt/GuiSearch.h
index 5ff29abb20..b1198af8e8 100644
--- a/src/frontends/qt/GuiSearch.h
+++ b/src/frontends/qt/GuiSearch.h
@@ -15,6 +15,7 @@
 
 #include "DockView.h"
 #include "FancyLineEdit.h"
+#include "support/docstring.h"
 
 #include <QMenu>
 #include <QDockWidget>
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to