]> source.dussan.org Git - tigervnc.git/commit
rfb: Fix inheritance in CMsgWriter
authorSteve Kondik <shade@chemlab.org>
Sat, 8 Jul 2017 09:04:41 +0000 (02:04 -0700)
committerSteve Kondik <shade@chemlab.org>
Sat, 8 Jul 2017 09:28:12 +0000 (02:28 -0700)
commitff69074635de8690b17f9ed90b8a6188ebb6176f
tree29829374d1c16649e6caba2562bec878820d363a
parent1f5d4b1310e7e94dbf24d49959856edfb3707668
rfb: Fix inheritance in CMsgWriter

InputHandler declares the second parameter of clientCutText
as an int.

Fixes:

/home/shade/dev/tigervnc/common/rfb/CMsgWriter.h:60:18: error: 'rfb::CMsgWriter::clientCutText' hides overloaded virtual function [-Werror,-Woverloaded-virtual]
    virtual void clientCutText(const char* str, rdr::U32 len);
                 ^
/home/shade/dev/tigervnc/common/rfb/InputHandler.h:36:18: note: hidden overloaded virtual function 'rfb::InputHandler::clientCutText' declared here: type mismatch at 2nd parameter ('int' vs 'rdr::U32' (aka 'unsigned int'))
    virtual void clientCutText(const char* str, int len) {}
                 ^
common/rfb/CMsgWriter.cxx
common/rfb/CMsgWriter.h