summaryrefslogtreecommitdiff
path: root/fluid/panels/template_panel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/panels/template_panel.cxx')
-rw-r--r--fluid/panels/template_panel.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/fluid/panels/template_panel.cxx b/fluid/panels/template_panel.cxx
index 7c2a9ac2b..12800e09c 100644
--- a/fluid/panels/template_panel.cxx
+++ b/fluid/panels/template_panel.cxx
@@ -84,7 +84,7 @@ static void cb_template_browser(Fl_Browser*, void*) {
char pngfile[1024], *ext;
strlcpy(pngfile, flfile, sizeof(pngfile));
- if ((ext = strrchr(pngfile, '.')) == nullptr) return;
+ if ((ext = strrchr(pngfile, '.')) == 0) return;
strcpy(ext, ".png");
img = Fl_Shared_Image::get(pngfile);
@@ -183,7 +183,7 @@ void template_clear() {
void *filename;
for (i = 1; i <= template_browser->size(); i ++) {
- if ((filename = template_browser->data(i)) != nullptr) free(filename);
+ if ((filename = template_browser->data(i)) != 0) free(filename);
}
template_browser->deselect();
@@ -208,7 +208,7 @@ void template_delete_cb(Fl_Button *, void *) {
char pngfile[1024], *ext;
strlcpy(pngfile, flfile, sizeof(pngfile));
- if ((ext = strrchr(pngfile, '.')) != nullptr) {
+ if ((ext = strrchr(pngfile, '.')) != 0) {
strcpy(ext, ".png");
fl_unlink(pngfile);
}