mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Mac: Fix Xcode 12.5 build errors related to implicit copy assignment operators
This commit is contained in:
@@ -151,10 +151,9 @@ class CefPoint : public CefStructBase<CefPointTraits> {
|
|||||||
public:
|
public:
|
||||||
typedef CefStructBase<CefPointTraits> parent;
|
typedef CefStructBase<CefPointTraits> parent;
|
||||||
|
|
||||||
CefPoint() : parent() {}
|
CefPoint() {}
|
||||||
CefPoint(const cef_point_t& r) : parent(r) {}
|
CefPoint(const cef_point_t& r) : parent(r) {}
|
||||||
CefPoint(const CefPoint& r) : parent(r) {}
|
CefPoint(int x, int y) { Set(x, y); }
|
||||||
CefPoint(int x, int y) : parent() { Set(x, y); }
|
|
||||||
|
|
||||||
bool IsEmpty() const { return x <= 0 && y <= 0; }
|
bool IsEmpty() const { return x <= 0 && y <= 0; }
|
||||||
void Set(int x_val, int y_val) { x = x_val, y = y_val; }
|
void Set(int x_val, int y_val) { x = x_val, y = y_val; }
|
||||||
@@ -188,12 +187,9 @@ class CefRect : public CefStructBase<CefRectTraits> {
|
|||||||
public:
|
public:
|
||||||
typedef CefStructBase<CefRectTraits> parent;
|
typedef CefStructBase<CefRectTraits> parent;
|
||||||
|
|
||||||
CefRect() : parent() {}
|
CefRect() {}
|
||||||
CefRect(const cef_rect_t& r) : parent(r) {}
|
CefRect(const cef_rect_t& r) : parent(r) {}
|
||||||
CefRect(const CefRect& r) : parent(r) {}
|
CefRect(int x, int y, int width, int height) { Set(x, y, width, height); }
|
||||||
CefRect(int x, int y, int width, int height) : parent() {
|
|
||||||
Set(x, y, width, height);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool IsEmpty() const { return width <= 0 || height <= 0; }
|
bool IsEmpty() const { return width <= 0 || height <= 0; }
|
||||||
void Set(int x_val, int y_val, int width_val, int height_val) {
|
void Set(int x_val, int y_val, int width_val, int height_val) {
|
||||||
@@ -240,10 +236,9 @@ class CefSize : public CefStructBase<CefSizeTraits> {
|
|||||||
public:
|
public:
|
||||||
typedef CefStructBase<CefSizeTraits> parent;
|
typedef CefStructBase<CefSizeTraits> parent;
|
||||||
|
|
||||||
CefSize() : parent() {}
|
CefSize() {}
|
||||||
CefSize(const cef_size_t& r) : parent(r) {}
|
CefSize(const cef_size_t& r) : parent(r) {}
|
||||||
CefSize(const CefSize& r) : parent(r) {}
|
CefSize(int width, int height) { Set(width, height); }
|
||||||
CefSize(int width, int height) : parent() { Set(width, height); }
|
|
||||||
|
|
||||||
bool IsEmpty() const { return width <= 0 || height <= 0; }
|
bool IsEmpty() const { return width <= 0 || height <= 0; }
|
||||||
void Set(int width_val, int height_val) {
|
void Set(int width_val, int height_val) {
|
||||||
@@ -279,10 +274,9 @@ class CefRange : public CefStructBase<CefRangeTraits> {
|
|||||||
public:
|
public:
|
||||||
typedef CefStructBase<CefRangeTraits> parent;
|
typedef CefStructBase<CefRangeTraits> parent;
|
||||||
|
|
||||||
CefRange() : parent() {}
|
CefRange() {}
|
||||||
CefRange(const cef_range_t& r) : parent(r) {}
|
CefRange(const cef_range_t& r) : parent(r) {}
|
||||||
CefRange(const CefRange& r) : parent(r) {}
|
CefRange(int from, int to) { Set(from, to); }
|
||||||
CefRange(int from, int to) : parent() { Set(from, to); }
|
|
||||||
|
|
||||||
void Set(int from_val, int to_val) { from = from_val, to = to_val; }
|
void Set(int from_val, int to_val) { from = from_val, to = to_val; }
|
||||||
};
|
};
|
||||||
@@ -315,10 +309,9 @@ class CefInsets : public CefStructBase<CefInsetsTraits> {
|
|||||||
public:
|
public:
|
||||||
typedef CefStructBase<CefInsetsTraits> parent;
|
typedef CefStructBase<CefInsetsTraits> parent;
|
||||||
|
|
||||||
CefInsets() : parent() {}
|
CefInsets() {}
|
||||||
CefInsets(const cef_insets_t& r) : parent(r) {}
|
CefInsets(const cef_insets_t& r) : parent(r) {}
|
||||||
CefInsets(const CefInsets& r) : parent(r) {}
|
CefInsets(int top, int left, int bottom, int right) {
|
||||||
CefInsets(int top, int left, int bottom, int right) : parent() {
|
|
||||||
Set(top, left, bottom, right);
|
Set(top, left, bottom, right);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -356,10 +349,9 @@ class CefDraggableRegion : public CefStructBase<CefDraggableRegionTraits> {
|
|||||||
public:
|
public:
|
||||||
typedef CefStructBase<CefDraggableRegionTraits> parent;
|
typedef CefStructBase<CefDraggableRegionTraits> parent;
|
||||||
|
|
||||||
CefDraggableRegion() : parent() {}
|
CefDraggableRegion() {}
|
||||||
CefDraggableRegion(const cef_draggable_region_t& r) : parent(r) {}
|
CefDraggableRegion(const cef_draggable_region_t& r) : parent(r) {}
|
||||||
CefDraggableRegion(const CefDraggableRegion& r) : parent(r) {}
|
CefDraggableRegion(const CefRect& bounds, bool draggable) {
|
||||||
CefDraggableRegion(const CefRect& bounds, bool draggable) : parent() {
|
|
||||||
Set(bounds, draggable);
|
Set(bounds, draggable);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -405,16 +397,14 @@ class CefScreenInfo : public CefStructBase<CefScreenInfoTraits> {
|
|||||||
public:
|
public:
|
||||||
typedef CefStructBase<CefScreenInfoTraits> parent;
|
typedef CefStructBase<CefScreenInfoTraits> parent;
|
||||||
|
|
||||||
CefScreenInfo() : parent() {}
|
CefScreenInfo() {}
|
||||||
CefScreenInfo(const cef_screen_info_t& r) : parent(r) {}
|
CefScreenInfo(const cef_screen_info_t& r) : parent(r) {}
|
||||||
CefScreenInfo(const CefScreenInfo& r) : parent(r) {}
|
|
||||||
CefScreenInfo(float device_scale_factor,
|
CefScreenInfo(float device_scale_factor,
|
||||||
int depth,
|
int depth,
|
||||||
int depth_per_component,
|
int depth_per_component,
|
||||||
bool is_monochrome,
|
bool is_monochrome,
|
||||||
const CefRect& rect,
|
const CefRect& rect,
|
||||||
const CefRect& available_rect)
|
const CefRect& available_rect) {
|
||||||
: parent() {
|
|
||||||
Set(device_scale_factor, depth, depth_per_component, is_monochrome, rect,
|
Set(device_scale_factor, depth, depth_per_component, is_monochrome, rect,
|
||||||
available_rect);
|
available_rect);
|
||||||
}
|
}
|
||||||
@@ -806,11 +796,10 @@ class CefTime : public CefStructBase<CefTimeTraits> {
|
|||||||
public:
|
public:
|
||||||
typedef CefStructBase<CefTimeTraits> parent;
|
typedef CefStructBase<CefTimeTraits> parent;
|
||||||
|
|
||||||
CefTime() : parent() {}
|
CefTime() {}
|
||||||
CefTime(const cef_time_t& r) : parent(r) {}
|
CefTime(const cef_time_t& r) : parent(r) {}
|
||||||
CefTime(const CefTime& r) : parent(r) {}
|
explicit CefTime(time_t r) { SetTimeT(r); }
|
||||||
explicit CefTime(time_t r) : parent() { SetTimeT(r); }
|
explicit CefTime(double r) { SetDoubleT(r); }
|
||||||
explicit CefTime(double r) : parent() { SetDoubleT(r); }
|
|
||||||
|
|
||||||
// Converts to/from time_t.
|
// Converts to/from time_t.
|
||||||
void SetTimeT(time_t r) { cef_time_from_timet(r, this); }
|
void SetTimeT(time_t r) { cef_time_from_timet(r, this); }
|
||||||
|
Reference in New Issue
Block a user