Fix Clang warning about struct/class mismatch

CaretGeometry is defined as a struct, but was forward-declared as a
class. Now we forward-declare as a struct. This addresses the
following Clang warning (that does not appear with GCC):

src/frontends/CaretGeometry.h:27:1: warning: 'CaretGeometry' defined
as a struct here but previously declared as a class; this is valid,
but may result in linker errors under the Microsoft C++ ABI
[-Wmismatched-tags]
This commit is contained in:
Scott Kostyshak 2020-11-26 13:48:42 -05:00
parent 5cf409328d
commit 9649e80c44

View File

@ -26,7 +26,7 @@ namespace lyx {
namespace support { class FileName; }
namespace frontend { class CaretGeometry; }
namespace frontend { struct CaretGeometry; }
namespace frontend { class Painter; }
namespace frontend { class GuiBufferViewDelegate; }