summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 987519d)
raw | patch | inline | side by side (parent: 987519d)
author | pjrm <pjrm@users.sourceforge.net> | |
Mon, 28 Jan 2008 21:23:39 +0000 (21:23 +0000) | ||
committer | pjrm <pjrm@users.sourceforge.net> | |
Mon, 28 Jan 2008 21:23:39 +0000 (21:23 +0000) |
src/axis-manip.h | patch | blob | history | |
src/proj_pt.h | patch | blob | history | |
src/vanishing-point.h | patch | blob | history |
diff --git a/src/axis-manip.h b/src/axis-manip.h
index 56306cc056e4dc7aa9385690a074c848faa58aa4..e39a27d128148bb55895f51f30fe210e0a5ef957 100644 (file)
--- a/src/axis-manip.h
+++ b/src/axis-manip.h
extern Axis axes[4];
-inline gchar * string_from_axis (Proj::Axis axis) {
+inline gchar const *
+string_from_axis(Proj::Axis axis) {
switch (axis) {
- case X:
- return "X";
- break;
- case Y:
- return "Y";
- break;
- case Z:
- return "Z";
- break;
- case W:
- return "W";
- break;
- case NONE:
- return "NONE";
- break;
+ case X: return "X"; break;
+ case Y: return "Y"; break;
+ case Z: return "Z"; break;
+ case W: return "W"; break;
+ case NONE: return "NONE"; break;
}
return "";
}
diff --git a/src/proj_pt.h b/src/proj_pt.h
index 30f375aa52d745d90893a2c9c8fdf1464c58d1fc..f27719c83710cfc898a72b2fd733ffa879512cea 100644 (file)
--- a/src/proj_pt.h
+++ b/src/proj_pt.h
NR::Point affine();
inline bool is_finite() { return pt[2] != 0; } // FIXME: Should we allow for some tolerance?
gchar *coord_string();
- inline void print(gchar *s) const { g_print ("%s(%8.2f : %8.2f : %8.2f)\n", s, pt[0], pt[1], pt[2]); }
+ inline void print(gchar const *s) const { g_print ("%s(%8.2f : %8.2f : %8.2f)\n", s, pt[0], pt[1], pt[2]); }
private:
double pt[3];
void normalize();
inline bool is_finite() { return pt[3] != 0; } // FIXME: Should we allow for some tolerance?
gchar *coord_string();
- inline void print(gchar *s) const {
+ inline void print(gchar const *s) const {
g_print ("%s(%8.2f : %8.2f : %8.2f : %8.2f)\n", s, pt[0], pt[1], pt[2], pt[3]);
}
diff --git a/src/vanishing-point.h b/src/vanishing-point.h
index 47c11be186df74643e348ef43ac47ecb8152e3ea..1708fa519496222ad81fec4f7607489afaaf81af 100644 (file)
--- a/src/vanishing-point.h
+++ b/src/vanishing-point.h
g_return_if_fail (_persp);
persp3d_get_VP (_persp, _axis).print("");
}
- inline gchar *axisString () { return Proj::string_from_axis (_axis); }
+ inline gchar const *axisString () { return Proj::string_from_axis(_axis); }
unsigned int my_counter;
static unsigned int global_counter; // FIXME: Only to implement operator< so that we can merge lists. Do this in a better way!!