diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-10-13 14:58:30 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-10-13 14:58:30 +0000 |
| commit | 66b1690aa8b5d05f540ded9999c08525cd1eaf7a (patch) | |
| tree | ccb5a3a743f1e008fd4b217c619ba99faee62612 /src/Fl_File_Icon2.cxx | |
| parent | db83933f585d156db2ae35d9c5649bb21b4555af (diff) | |
Replace remaining calls to getenv() with fl_getenv().
... except in driver code that uses Fl_System_Driver::getenv().
Todo: Check if all remaining calls of getenv() in driver code are correct
or might use ::getenv() to avoid one calling level for optimization.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12492 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Icon2.cxx')
| -rw-r--r-- | src/Fl_File_Icon2.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_File_Icon2.cxx b/src/Fl_File_Icon2.cxx index 3bd0b9189..9022423b0 100644 --- a/src/Fl_File_Icon2.cxx +++ b/src/Fl_File_Icon2.cxx @@ -6,6 +6,7 @@ // KDE icon code donated by Maarten De Boer. // // Copyright 1999-2010 by Michael Sweet. +// Copyright 2011-2017 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -653,7 +654,7 @@ Fl_File_Icon::load_system_icons(void) { if (!kdedir) { // Figure out where KDE is installed... - if ((kdedir = getenv("KDEDIR")) == NULL) { + if ((kdedir = fl_getenv("KDEDIR")) == NULL) { if (!fl_access("/opt/kde", F_OK)) kdedir = "/opt/kde"; else if (!fl_access("/usr/local/share/mimelnk", F_OK)) kdedir = "/usr/local"; else kdedir = "/usr"; |
