summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fc9e87b)
raw | patch | inline | side by side (parent: fc9e87b)
author | joncruz <joncruz@users.sourceforge.net> | |
Fri, 14 Sep 2007 04:41:34 +0000 (04:41 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Fri, 14 Sep 2007 04:41:34 +0000 (04:41 +0000) |
src/libnr/nr-object.h | patch | blob | history | |
src/libnr/nr-rect.h | patch | blob | history |
diff --git a/src/libnr/nr-object.h b/src/libnr/nr-object.h
index f39814b0d878f9b7384149d2758ac809589e1fef..269130284cadbc5b3df016c39d4711002cc30fd2 100644 (file)
--- a/src/libnr/nr-object.h
+++ b/src/libnr/nr-object.h
NRObject(NRObject const &); // no copy
void operator=(NRObject const &); // no assign
- void *operator new(size_t size, void *placement) { return placement; }
+ void *operator new(size_t size, void *placement) { (void)size; return placement; }
};
struct NRObjectClass {
diff --git a/src/libnr/nr-rect.h b/src/libnr/nr-rect.h
index 439538e2998f880d99c1b8c4efc9c92fa310c244..fc4d617df775bc086e9e16d3c310c86d44951dae 100644 (file)
--- a/src/libnr/nr-rect.h
+++ b/src/libnr/nr-rect.h
struct NRRect {
NRRect() {}
NRRect(NR::Coord xmin, NR::Coord ymin, NR::Coord xmax, NR::Coord ymax)
- : x0(xmin), y0(ymin), x1(xmin), y1(ymin)
+ : x0(xmin), y0(ymin), x1(xmax), y1(ymax)
{}
explicit NRRect(NR::Rect const &rect);
explicit NRRect(NR::Maybe<NR::Rect> const &rect);