[commit] r1298 - trunk/SDK/BON/Common

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Mon May 9 13:08:26 CDT 2011


Author: ksmyth
Date: Mon May  9 13:08:26 2011
New Revision: 1298

Log:
ProjectImpl::getRootFolder cant cache the rootfolder with a raw pointer. Remove the cache

Modified:
   trunk/SDK/BON/Common/BONImpl.cpp
   trunk/SDK/BON/Common/BONImpl.h

Modified: trunk/SDK/BON/Common/BONImpl.cpp
==============================================================================
--- trunk/SDK/BON/Common/BONImpl.cpp	Mon May  9 11:46:01 2011	(r1297)
+++ trunk/SDK/BON/Common/BONImpl.cpp	Mon May  9 13:08:26 2011	(r1298)
@@ -398,7 +398,6 @@
 		m_mapObjectsByID.clear();
 		m_mapObjectsByKind.clear();
 		m_spProject = NULL;
-		m_pRootFolder = NULL;
 		m_gme = NULL;
 		m_meta = MON::Project();
 	}
@@ -1053,12 +1052,9 @@
 
 	Folder ProjectImpl::getRootFolder()
 	{
-		if ( m_pRootFolder )
-				return m_pRootFolder;
-
 		FolderPtr spFolder;
 		COMCHECK2( m_spProject, m_spProject->get_RootFolder( spFolder.Addr() ) );
-		return m_pRootFolder = (FolderImpl*) ObjectImpl::attachI( spFolder, this );
+		return (FolderImpl*) ObjectImpl::attachI( spFolder, this );
 	}
 
 	// CHANGED LINE BEGIN

Modified: trunk/SDK/BON/Common/BONImpl.h
==============================================================================
--- trunk/SDK/BON/Common/BONImpl.h	Mon May  9 11:46:01 2011	(r1297)
+++ trunk/SDK/BON/Common/BONImpl.h	Mon May  9 13:08:26 2011	(r1298)
@@ -131,7 +131,6 @@
 			ObjectMap				m_mapObjects;
 			ObjectMapByID			m_mapObjectsByID;
 			ObjectMapByKind			m_mapObjectsByKind;
-			FolderImpl*				m_pRootFolder;
 		// Namespace related member variables
 		private :
 			std::string			m_nmsp;


More information about the gme-commit mailing list