[Scummvm-cvs-logs] SF.net SVN: scummvm: [27904] scummex/branches/gsoc2007-gameresbrowser/src

zbychs at users.sourceforge.net zbychs at users.sourceforge.net
Wed Jul 4 21:42:11 CEST 2007


Revision: 27904
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27904&view=rev
Author:   zbychs
Date:     2007-07-04 12:42:10 -0700 (Wed, 04 Jul 2007)

Log Message:
-----------
Added missing file: core/safe_static.cpp.

Modified Paths:
--------------
    scummex/branches/gsoc2007-gameresbrowser/src/core/pinslot.cpp
    scummex/branches/gsoc2007-gameresbrowser/src/gui/MainForm.cpp

Added Paths:
-----------
    scummex/branches/gsoc2007-gameresbrowser/src/core/safe_static.cpp

Modified: scummex/branches/gsoc2007-gameresbrowser/src/core/pinslot.cpp
===================================================================
--- scummex/branches/gsoc2007-gameresbrowser/src/core/pinslot.cpp	2007-07-04 19:25:10 UTC (rev 27903)
+++ scummex/branches/gsoc2007-gameresbrowser/src/core/pinslot.cpp	2007-07-04 19:42:10 UTC (rev 27904)
@@ -174,7 +174,7 @@
 	std::set<BObject*>::const_iterator i;
 	for (i = _initializedObjects.begin(); i != _initializedObjects.end(); ++i) {
 		BObject* obj = *i;
-		std::cout << obj->get_GUID().identifier << ": " << obj << std::endl;
+		std::cout << obj->get_GUID().identifier << ":\t\t" << obj << std::endl;
 	}
 
 	std::cout << "---------- DONE DUMPING INITIALIZED OBJECTS ----------" << std::endl;

Added: scummex/branches/gsoc2007-gameresbrowser/src/core/safe_static.cpp
===================================================================
--- scummex/branches/gsoc2007-gameresbrowser/src/core/safe_static.cpp	                        (rev 0)
+++ scummex/branches/gsoc2007-gameresbrowser/src/core/safe_static.cpp	2007-07-04 19:42:10 UTC (rev 27904)
@@ -0,0 +1,23 @@
+/////////////////////////////////////////////////////////////////////////////
+// safe_static.cpp
+//
+
+#include "stdafx.h"
+
+#include "safe_static.h"
+
+namespace Browser {
+
+/////////////////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////////////////
+
+bool statics_allowed = true;
+
+void set_statics_not_allowed() {
+	statics_allowed = false;
+}
+
+/////////////////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////////////////
+
+} // namespace Browser


Property changes on: scummex/branches/gsoc2007-gameresbrowser/src/core/safe_static.cpp
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Modified: scummex/branches/gsoc2007-gameresbrowser/src/gui/MainForm.cpp
===================================================================
--- scummex/branches/gsoc2007-gameresbrowser/src/gui/MainForm.cpp	2007-07-04 19:25:10 UTC (rev 27903)
+++ scummex/branches/gsoc2007-gameresbrowser/src/gui/MainForm.cpp	2007-07-04 19:42:10 UTC (rev 27904)
@@ -68,11 +68,17 @@
 }
 
 MainForm::~MainForm() {
+	InitializedObjects::get()->report();
+
 	ExplorationTree::release();
+	InitializedObjects::get()->report();
+
 	FileTypeRegistry::release();
+	InitializedObjects::get()->report();
+
 	ObjectRegistry::release();
+	InitializedObjects::get()->report();
 
-	InitializedObjects::get()->report();
 	InitializedObjects::release();
 
 	set_statics_not_allowed();


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list