diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2012-07-24 04:37:22 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2012-07-24 04:37:22 +0000 |
| commit | 398acd9c2a73d0d5c69bb51f7f3497e229fb367c (patch) | |
| tree | 1c7466ccccbe5dd68b23eb459ba4e045491df7fd /src/Fl_Browser.cxx | |
| parent | e607c90877e3d2dbf352d0f794c6c81c6d264b4e (diff) | |
STR 2705: moved all inline constructors (that I could find) from header files into source files. Even though this breaks downward compatibility, it does make dynamic linking possible for all classes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9637 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Browser.cxx')
| -rw-r--r-- | src/Fl_Browser.cxx | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/src/Fl_Browser.cxx b/src/Fl_Browser.cxx index 86e93d95a..b9c140780 100644 --- a/src/Fl_Browser.cxx +++ b/src/Fl_Browser.cxx @@ -23,11 +23,10 @@ #include <stdlib.h> #include <math.h> -#if defined(FL_DLL) // really needed for c'tors for MS VC++ only #include <FL/Fl_Hold_Browser.H> #include <FL/Fl_Multi_Browser.H> #include <FL/Fl_Select_Browser.H> -#endif + // I modified this from the original Forms data to use a linked list // so that the number of items in the browser and size of those items @@ -908,29 +907,27 @@ void Fl_Browser::remove_icon(int line) { icon(line,0); } -/* - The following constructors must not be in the header file(s) if we - build a shared object (DLL). Instead they are defined here to force - the constructor (and default destructor as well) to be defined in - the DLL and exported (STR #2632, #2645). - - Note: if you change any of them, do the same changes in the specific - header file as well. This redundant definition was chosen to enable - inline constructors in the header files (for static linking) as well - as those here for dynamic linking (Windows DLL). -*/ -#if defined(FL_DLL) - Fl_Hold_Browser::Fl_Hold_Browser(int X,int Y,int W,int H,const char *L) - : Fl_Browser(X,Y,W,H,L) {type(FL_HOLD_BROWSER);} +Fl_Hold_Browser::Fl_Hold_Browser(int X,int Y,int W,int H,const char *L) +: Fl_Browser(X,Y,W,H,L) +{ + type(FL_HOLD_BROWSER); +} + + +Fl_Multi_Browser::Fl_Multi_Browser(int X,int Y,int W,int H,const char *L) +: Fl_Browser(X,Y,W,H,L) +{ + type(FL_MULTI_BROWSER); +} - Fl_Multi_Browser::Fl_Multi_Browser(int X,int Y,int W,int H,const char *L) - : Fl_Browser(X,Y,W,H,L) {type(FL_MULTI_BROWSER);} - Fl_Select_Browser::Fl_Select_Browser(int X,int Y,int W,int H,const char *L) - : Fl_Browser(X,Y,W,H,L) {type(FL_SELECT_BROWSER);} +Fl_Select_Browser::Fl_Select_Browser(int X,int Y,int W,int H,const char *L) +: Fl_Browser(X,Y,W,H,L) +{ + type(FL_SELECT_BROWSER); +} -#endif // FL_DLL // // End of "$Id$". |
