summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FL/platform_types.h2
-rw-r--r--src/Fl_Help_View.cxx2
-rw-r--r--src/Fl_Image_Surface.cxx4
3 files changed, 5 insertions, 3 deletions
diff --git a/FL/platform_types.h b/FL/platform_types.h
index 7cdb8e4e3..3d812922e 100644
--- a/FL/platform_types.h
+++ b/FL/platform_types.h
@@ -62,7 +62,7 @@ typedef int FL_SOCKET;
typedef NSOpenGLContext* GLContext;
#elif defined(__cplusplus)
typedef class NSOpenGLContext* GLContext;
-#endif // __OBJC__
+#endif /* __OBJC__ */
#include <sys/stat.h>
#include <sys/types.h>
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx
index 223064bfb..71ceb0790 100644
--- a/src/Fl_Help_View.cxx
+++ b/src/Fl_Help_View.cxx
@@ -313,7 +313,7 @@ public:
int width() { return (int)fl_width(buf_); }
char & operator[] (int idx) { return buf_[idx]; }
- char const operator[] (int idx) const { return buf_[idx]; }
+ char operator[] (int idx) const { return buf_[idx]; }
#if (DEBUG_EDIT_BUFFER)
void print(const char *text = "");
diff --git a/src/Fl_Image_Surface.cxx b/src/Fl_Image_Surface.cxx
index ab1248cc6..d26a53600 100644
--- a/src/Fl_Image_Surface.cxx
+++ b/src/Fl_Image_Surface.cxx
@@ -67,7 +67,9 @@ void Fl_Image_Surface::untranslate() {
}
/** Returns the Fl_Offscreen object associated to the image surface */
-Fl_Offscreen Fl_Image_Surface::offscreen() {return platform_surface? platform_surface->offscreen : NULL;}
+Fl_Offscreen Fl_Image_Surface::offscreen() {
+ return platform_surface ? platform_surface->offscreen : (Fl_Offscreen)0;
+}
int Fl_Image_Surface::printable_rect(int *w, int *h) {return platform_surface->printable_rect(w, h);}