diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-07-01 18:03:10 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-07-06 20:28:20 +0200 |
| commit | f09e17c3c564e8310125a10c03397cbf473ff643 (patch) | |
| tree | 8d0fd4a28e3686c33aaa140d07ddba26ab28bdc2 /src/Fl_Native_File_Chooser.cxx | |
| parent | b0e0c355edaa2e23148cb0260ada907aec930f05 (diff) | |
Remove $Id$ tags, update URL's, and more
- remove obsolete svn '$Id$' tags from all source files
- update .fl files and generated files accordingly
- replace 'http://www.fltk.org' URL's with 'https://...'
- replace bug report URL 'str.php' with 'bugs.php'
- remove trailing whitespace
- fix other whitespace errors flagged by Git
- add and/or fix missing or wrong standard headers
- convert tabs to spaces in all source files
The only relevant code changes are in the fluid/ folder where
some .fl files and other source files were used to generate
the '$Id' headers and footers.
Diffstat (limited to 'src/Fl_Native_File_Chooser.cxx')
| -rw-r--r-- | src/Fl_Native_File_Chooser.cxx | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/src/Fl_Native_File_Chooser.cxx b/src/Fl_Native_File_Chooser.cxx index b3f824ffb..b2b499c36 100644 --- a/src/Fl_Native_File_Chooser.cxx +++ b/src/Fl_Native_File_Chooser.cxx @@ -1,4 +1,3 @@ -// "$Id$" // // FLTK native OS file chooser widget // @@ -9,11 +8,11 @@ // the file "COPYING" which should have been included with this file. If this // file is missing or damaged, see the license at: // -// http://www.fltk.org/COPYING.php +// https://www.fltk.org/COPYING.php // -// Please report all bugs and problems to: +// Please see the following page on how to report bugs and issues: // -// http://www.fltk.org/str.php +// https://www.fltk.org/bugs.php // @@ -186,7 +185,7 @@ int Fl_Native_File_Chooser::filters() const { /** Sets which filter will be initially selected. - + The first filter is indexed as 0. If filter_value()==filters(), then "All Files" was chosen. If filter_value() > filters(), then a custom filter was set. @@ -271,21 +270,21 @@ char *Fl_Native_File_Chooser_Driver::strfree(char *val) { // 'val' can be NULL; s is returned unmodified. // // Usage: -// char *s = strnew("foo"); // s = "foo" -// s = strapp(s, "bar"); // s = "foobar" +// char *s = strnew("foo"); // s = "foo" +// s = strapp(s, "bar"); // s = "foobar" // char *Fl_Native_File_Chooser_Driver::strapp(char *s, const char *val) { if ( ! val ) { - return(s); // Nothing to append? return s + return(s); // Nothing to append? return s } if ( ! s ) { - return(strnew(val)); // New string? return copy of val + return(strnew(val)); // New string? return copy of val } char *news = new char[strlen(s)+strlen(val)+1]; strcpy(news, s); strcat(news, val); - delete [] s; // delete old string - return(news); // return new copy + delete [] s; // delete old string + return(news); // return new copy } // APPEND A CHARACTER TO A STRING @@ -300,7 +299,3 @@ void Fl_Native_File_Chooser_Driver::chrcat(char *s, char c) { \} \endcond */ - -// -// End of "$Id$". -// |
