Commit c27ceed9 authored by Adriaan de Groot's avatar Adriaan de Groot 💬

Forward-declare LayoutUnit consistently (as class, not struct)

Resolves issues like this one:

src/kde/plasma/plasma-desktop/kcms/keyboard/flags.h:29:1: warning:
      struct 'LayoutUnit' was previously declared as a struct; this is valid,
      but may result in linker errors under the Microsoft C++ ABI
      [-Wmismatched-tags]
struct LayoutUnit;
^
src/kde/plasma/plasma-desktop/kcms/keyboard/x11_helper.h:90:7: note:
      previous use is here
class LayoutUnit {
parent 77271b6e
......@@ -26,7 +26,7 @@
class QPixmap;
class QIcon;
struct LayoutUnit;
class LayoutUnit;
class KeyboardConfig;
struct Rules;
class QPainter;
......
......@@ -27,7 +27,7 @@ class KeyboardConfig;
class Flags;
struct Rules;
class QActionGroup;
struct LayoutUnit;
class LayoutUnit;
class LayoutsMenu : public QObject
{
......
......@@ -21,7 +21,7 @@
#define XKB_HELPER_H_
template <typename T> class QList;
struct LayoutUnit;
class LayoutUnit;
class QStringList;
class KeyboardConfig;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment