| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -65,6 +65,10 @@ class BufferRegion | |||
| 65 | 65 | delete[] data; | |
| 66 | 66 | }; | |
| 67 | 67 | ||
| 68 | + // prevent copying | ||
| 69 | + BufferRegion(const BufferRegion &) = delete; | ||
| 70 | + BufferRegion &operator=(const BufferRegion &) = delete; | ||
| 71 | + | ||
| 68 | 72 | agg::int8u *get_data() | |
| 69 | 73 | { | |
| 70 | 74 | return data; | |
@@ -96,11 +100,6 @@ class BufferRegion | |||
| 96 | 100 | int width; | |
| 97 | 101 | int height; | |
| 98 | 102 | int stride; | |
| 99 | - | ||
| 100 | - private: | ||
| 101 | - // prevent copying | ||
| 102 | - BufferRegion(const BufferRegion &); | ||
| 103 | - BufferRegion &operator=(const BufferRegion &); | ||
| 104 | 103 | }; | |
| 105 | 104 | ||
| 106 | 105 | #define MARKER_CACHE_SIZE 512 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,20 +60,16 @@ namespace agg | |||
| 60 | 60 | value_type a; | |
| 61 | 61 | ||
| 62 | 62 | //-------------------------------------------------------------------- | |
| 63 | - gray64() {} | ||
| 63 | + gray64() = default; | ||
| 64 | 64 | ||
| 65 | 65 | //-------------------------------------------------------------------- | |
| 66 | - explicit gray64(value_type v_, value_type a_ = 1) : | ||
| 67 | - v(v_), a(a_) {} | ||
| 66 | + explicit gray64(value_type v_, value_type a_ = 1) : v(v_), a(a_) {} | ||
| 68 | 67 | ||
| 69 | 68 | //-------------------------------------------------------------------- | |
| 70 | - gray64(const self_type& c, value_type a_) : | ||
| 71 | - v(c.v), a(a_) {} | ||
| 69 | + gray64(const self_type& c, value_type a_) : v(c.v), a(a_) {} | ||
| 72 | 70 | ||
| 73 | 71 | //-------------------------------------------------------------------- | |
| 74 | - gray64(const gray64& c) : | ||
| 75 | - v(c.v), | ||
| 76 | - a(c.a) {} | ||
| 72 | + gray64(const gray64& c) = default; | ||
| 77 | 73 | ||
| 78 | 74 | //-------------------------------------------------------------------- | |
| 79 | 75 | static AGG_INLINE double to_double(value_type a) | |
@@ -246,7 +242,7 @@ namespace agg | |||
| 246 | 242 | value_type a; | |
| 247 | 243 | ||
| 248 | 244 | //-------------------------------------------------------------------- | |
| 249 | - rgba64() {} | ||
| 245 | + rgba64() = default; | ||
| 250 | 246 | ||
| 251 | 247 | //-------------------------------------------------------------------- | |
| 252 | 248 | rgba64(value_type r_, value_type g_, value_type b_, value_type a_= 1) : | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -56,9 +56,7 @@ class empty | |||
| 56 | 56 | public: | |
| 57 | 57 | typedef empty<T> sub_t; | |
| 58 | 58 | ||
| 59 | - empty() | ||
| 60 | - { | ||
| 61 | - } | ||
| 59 | + empty() = default; | ||
| 62 | 60 | ||
| 63 | 61 | T &operator()(int i, int j = 0, int k = 0) | |
| 64 | 62 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,9 +59,7 @@ class EmbeddedQueue | |||
| 59 | 59 | ||
| 60 | 60 | struct item | |
| 61 | 61 | { | |
| 62 | - item() | ||
| 63 | - { | ||
| 64 | - } | ||
| 62 | + item() = default; | ||
| 65 | 63 | ||
| 66 | 64 | inline void set(const unsigned cmd_, const double x_, const double y_) | |
| 67 | 65 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,8 +44,7 @@ std::ostream& operator<<(std::ostream& os, const TriEdge& tri_edge) | |||
| 44 | 44 | ||
| 45 | 45 | ||
| 46 | 46 | ||
| 47 | - XY::XY() | ||
| 48 | - {} | ||
| 47 | + XY::XY() = default; | ||
| 49 | 48 | ||
| 50 | 49 | XY::XY(const double& x_, const double& y_) | |
| 51 | 50 | : x(x_), y(y_) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments