Clang doesn't like when struct and class are used to refer
to the same thing interchangeably.
Fixes all instances of:
In file included from /home/shade/dev/tigervnc/common/rfb/CConnection.cxx:29:
In file included from /home/shade/dev/tigervnc/common/rfb/CConnection.h:28:
/home/shade/dev/tigervnc/common/rfb/DecodeManager.h:35:3: error: class 'Exception' was previously declared as a struct [-Werror,-Wmismatched-tags]
class Exception;
^
/home/shade/dev/tigervnc/common/rdr/Exception.h:32:10: note: previous use is here
struct Exception {
^
/home/shade/dev/tigervnc/common/rfb/DecodeManager.h:35:3: note: did you mean struct here?
class Exception;
^~~~~
struct
/home/shade/dev/tigervnc/common/rfb/DecodeManager.h:43:3: error: class 'Rect' was previously declared as a struct [-Werror,-Wmismatched-tags]
class Rect;
^
/home/shade/dev/tigervnc/common/rfb/Rect.h:68:10: note: previous use is here
struct Rect {
^
/home/shade/dev/tigervnc/common/rfb/DecodeManager.h:43:3: note: did you mean struct here?
class Rect;
^~~~~
struct
class PixelFormat;
class ConnParams;
- class ScreenSet;
+ struct ScreenSet;
struct Rect;
class CMsgWriter : public InputHandler {
}
namespace rdr {
- class Exception;
+ struct Exception;
class MemOutStream;
}
class CConnection;
class Decoder;
class ModifiablePixelBuffer;
- class Rect;
+ struct Rect;
class DecodeManager {
public:
namespace rfb {
class ConnParams;
class ModifiablePixelBuffer;
- class Rect;
class Region;
+ struct Rect;
+
enum DecoderFlags {
// A constant for decoders that don't need anything special
DecoderPlain = 0,
class PixelBuffer;
class RenderedCursor;
class Region;
- class Rect;
+ struct Rect;
struct RectInfo;
namespace rfb {
class ConnParams;
- class ScreenSet;
+ struct ScreenSet;
class SMsgWriter {
public: