aboutsummaryrefslogtreecommitdiff
path: root/common/singleton.h
AgeCommit message (Collapse)Author
2011-06-30ALL: Require DECLARE_SINGLETON to be used in the Common namepsaceOri Avtalion
Silences the clang warning: static data member specialization of '_singleton' must originally be declared in namespace 'Common'; accepted as a C++0x extension [-Wc++0x-extensions] Wrapping "namespace Common {}" around the macro assignment causes clang to complain about a spurious semicolon, and removing the semicolon at the end of the macro causes some editors to misbehave. Changing the requirement of using the macro in one namespace (the global) to another (Common) seems a small price to pay to silence a warning.
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2010-11-16COMMON: Reverting r54257 as _singleton already was protected (and I am blind :)Max Horn
svn-id: r54259
2010-11-16COMMON: Simplify DECLARE_SINGLETON macroMax Horn
This makes it possible to write DECLARE_SINGLETON(foo); instead of DECLARE_SINGLETON(foo) without causing a warning about an extra semicolon. The extra semicolon helps some editors at parsing the C++ code. svn-id: r54258
2010-11-16COMMON: Make Common::Singleton::_singleton protected instead of publicMax Horn
svn-id: r54257
2010-11-15CONFIGMAN: added defragmentation methods for one-plugin-at-a-timeYotam Barnoy
One-plugin-at-a-time can have fragmentation caused by the ConfigManager if a game changes any configuration value. By reallocating and copying over the ConfigManager, we avoid this problem. svn-id: r54243
2010-07-21Strip trailing whitespaces in our common code base.Johannes Schickel
svn-id: r51094
2010-03-13Fix our DECLARE_SINGLETON macro to conform to the C++ specs.Johannes Schickel
We need to use a namespace Common { } there to make strict C++ compilers like clang++ and comeau happy. I also added a slight comment about why that is needed to the macro definition and a note that you need to use it from the global namespace. svn-id: r48254
2008-05-03Formatting.Johannes Schickel
svn-id: r31852
2008-04-26Fixed segfault when trying to start invalid gameid from command line.Johannes Schickel
svn-id: r31731
2008-03-26Modified Patch #1925352: Memory leak fixesMax Horn
svn-id: r31244
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024
2007-05-27Reverted r26922.Johannes Schickel
svn-id: r26967
2007-05-22Simpilified Singleton implementation and usage.Johannes Schickel
svn-id: r26922
2007-03-17Added class NonCopyable, and made various things derive from itMax Horn
svn-id: r26163
2006-02-11Change CVS keywords to SVN keywordsMax Horn
svn-id: r20510
2006-01-18Update copyright noticeEugene Sandulenko
svn-id: r20088
2005-10-18Update FSF address. Eek. Actually that took place on May 1, 2005Eugene Sandulenko
svn-id: r19142
2005-07-30Remove trailing whitespaces.Eugene Sandulenko
svn-id: r18604
2005-06-21Patches needed to build for SYMBIAN32 WINS/GCC added.Lars Persson
Test built for Symbian and run on P910i without any major problems. Test built for MSVC6. Changed parts seems to compile ok but there are some problems with MSVC6 and some of the targets which the EPOC build does n't support (KYRA,SAGA). svn-id: r18430
2005-05-10Fix compilationEugene Sandulenko
svn-id: r18016
2005-05-09fixed compilation for evc4 and vc7Paweł Kołodziejski
svn-id: r18013
2005-01-27emsvc4 need public access, hmmm...Paweł Kołodziejski
svn-id: r16650
2005-01-10yet another attempt to get makeInstance working for gcc 3.3, gcc 3.2, and ↵Max Horn
MSVC (thanks to wjp for the suggestion). Works fine with GCC 3.2 and 3.3 svn-id: r16525
2005-01-06Modify the singleton code once more to help overcome an issue with MSVC 7 ↵Max Horn
(see also patch #1095133) svn-id: r16454
2005-01-01Changed the singleton code to allow for custom object factories; this ↵Max Horn
allowed me to change OSystem to use the singleton base class, too svn-id: r16404
2005-01-01Updated copyrightMax Horn
svn-id: r16398
2004-12-30cleanupMax Horn
svn-id: r16382
2004-12-29Compile fix from cyxTravis Howell
svn-id: r16366
2004-12-28Fix running ScummVM in plugin-modeMax Horn
svn-id: r16360
2004-01-06updated copyright noticeMax Horn
svn-id: r12176
2003-12-10slightly altered singleton implemention, might help MSVC6, or might screw it ↵Max Horn
even more :-) svn-id: r11543
2003-11-02turned NewGui into a singleton, and made OSystem a pseudo-singleton; added ↵Max Horn
Widget::findWidget (preparing to add support for nested widgets, for the tab widget) svn-id: r11045
2003-10-08new config manager. not everything is completed, and some things will still ↵Max Horn
be changed, but it seems to work well enough to put it into CVS svn-id: r10687