Add nil dtor for window, and make it ready for C++
This commit is contained in:
@ -21,6 +21,7 @@
|
|||||||
#include "capi.hh"
|
#include "capi.hh"
|
||||||
#include "uicmd.hh"
|
#include "uicmd.hh"
|
||||||
|
|
||||||
|
BrowserWindow::~BrowserWindow()= default;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Local Data
|
* Local Data
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/** Contains the specific data for a single window */
|
/** Contains the specific data for a single window */
|
||||||
typedef struct {
|
struct BrowserWindow {
|
||||||
/** Pointer to the UI object this bw belongs to */
|
/** Pointer to the UI object this bw belongs to */
|
||||||
void *ui;
|
void *ui;
|
||||||
|
|
||||||
@ -72,11 +72,15 @@ typedef struct {
|
|||||||
|
|
||||||
/* Zoom factor */
|
/* Zoom factor */
|
||||||
float zoom;
|
float zoom;
|
||||||
} BrowserWindow;
|
|
||||||
|
~BrowserWindow();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
#else
|
||||||
|
#error Browser Window is C++ now.
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user