Add noncopyable
This commit is contained in:
@@ -3,13 +3,14 @@
|
||||
|
||||
#include <mbgl/mbgl.hpp>
|
||||
#include <mbgl/util/time.hpp>
|
||||
#include <mbgl/util/noncopyable.hpp>
|
||||
|
||||
#ifdef NVIDIA
|
||||
#define GLFW_INCLUDE_ES2
|
||||
#endif
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
class GLFWView : public mbgl::View {
|
||||
class GLFWView : public mbgl::View, private mbgl::util::noncopyable {
|
||||
public:
|
||||
GLFWView(bool fullscreen = false);
|
||||
~GLFWView();
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
#ifndef MBGL_COMMON_HEADLESS_DISPLAY
|
||||
#define MBGL_COMMON_HEADLESS_DISPLAY
|
||||
|
||||
#include <mbgl/util/noncopyable.hpp>
|
||||
#include "headless_view.hpp"
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
class HeadlessDisplay {
|
||||
class HeadlessDisplay, private mbgl::util::noncopyable {
|
||||
public:
|
||||
HeadlessDisplay();
|
||||
~HeadlessDisplay();
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#define MBGL_USE_GLX 1
|
||||
#endif
|
||||
|
||||
#include <mbgl/util/noncopyable.hpp>
|
||||
#include <mbgl/map/view.hpp>
|
||||
#include <mbgl/platform/gl.hpp>
|
||||
|
||||
@@ -18,7 +19,7 @@ namespace mbgl {
|
||||
|
||||
class HeadlessDisplay;
|
||||
|
||||
class HeadlessView : public View {
|
||||
class HeadlessView : public View, private util::noncopyable {
|
||||
public:
|
||||
HeadlessView();
|
||||
HeadlessView(std::shared_ptr<HeadlessDisplay> display);
|
||||
|
||||
Reference in New Issue
Block a user