mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-12 23:49:06 +08:00
SVEventHandler: Define virtual destructor in .cpp file
This fixes compiler warnings from clang: src/viewer/scrollview.h:86:7: warning: 'SVEventHandler' has no out-of-line virtual method definitions; its vtable will be emitted in every translation unit [-Wweak-vtables] Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
8e55146938
commit
1c9bd51de8
@ -73,6 +73,8 @@ SVEvent* SVEvent::copy() {
|
|||||||
return any;
|
return any;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SVEventHandler::~SVEventHandler() = default;
|
||||||
|
|
||||||
#ifndef GRAPHICS_DISABLED
|
#ifndef GRAPHICS_DISABLED
|
||||||
/// This is the main loop which handles the ScrollView-logic from the server
|
/// This is the main loop which handles the ScrollView-logic from the server
|
||||||
/// to the client. It basically loops through messages, parses them to events
|
/// to the client. It basically loops through messages, parses them to events
|
||||||
|
@ -85,7 +85,7 @@ struct SVEvent {
|
|||||||
// called whenever an appropriate event occurs.
|
// called whenever an appropriate event occurs.
|
||||||
class SVEventHandler {
|
class SVEventHandler {
|
||||||
public:
|
public:
|
||||||
virtual ~SVEventHandler() {}
|
virtual ~SVEventHandler();
|
||||||
|
|
||||||
// Gets called by the SV Window. Does nothing on default, overwrite this
|
// Gets called by the SV Window. Does nothing on default, overwrite this
|
||||||
// to implement the desired behaviour
|
// to implement the desired behaviour
|
||||||
|
Loading…
Reference in New Issue
Block a user