[commit] r2417 - trunk/GME/GMEActiveBrowser

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Wed Jan 22 11:15:02 CST 2014


Author: ksmyth
Date: Wed Jan 22 11:15:02 2014
New Revision: 2417

Log:
Get rid of New name prefix

Modified:
   trunk/GME/GMEActiveBrowser/AggregateContextMenu.cpp

Modified: trunk/GME/GMEActiveBrowser/AggregateContextMenu.cpp
==============================================================================
--- trunk/GME/GMEActiveBrowser/AggregateContextMenu.cpp	Fri Jan 17 14:57:11 2014	(r2416)
+++ trunk/GME/GMEActiveBrowser/AggregateContextMenu.cpp	Wed Jan 22 11:15:02 2014	(r2417)
@@ -159,7 +159,7 @@
 
 							CComBSTR bszDispName;
 							ccpMetaFolder->get_DisplayedName(&bszDispName);
-							bszDispName=CString(_T("New"))+CString(bszDispName);
+							bszDispName = CString(bszDispName);
 							
 
 							// Starting transaction
@@ -186,7 +186,7 @@
 							// Setting name to the newly created object
 							CComBSTR bszDispName;
 							ccpMetaFCO->get_DisplayedName(&bszDispName);
-							bszDispName=CString(_T("New"))+CString(bszDispName);
+							bszDispName = CString(bszDispName);
 							
 							// Starting transaction
 							CGMEActiveBrowserApp* pApp=(CGMEActiveBrowserApp*)AfxGetApp();
@@ -213,17 +213,13 @@
 					{
 						CComPtr<IMgaFCO> ccpNewFCO;
 
-						// Setting name to the newly created object
-						CComBSTR bszDispName;
-						ccpMetaRole->get_DisplayedName(&bszDispName);
-						bszDispName=CString(_T("New"))+CString(bszDispName);
-						
 						// Starting transaction
 						CGMEActiveBrowserApp* pApp=(CGMEActiveBrowserApp*)AfxGetApp();
 						CMgaContext* pMgaContext=&pApp->m_CurrentProject.m_MgaContext;
 						pMgaContext->BeginTransaction(false);
 
 						COMTHROW( ccpParentModel->CreateChildObject(ccpMetaRole,&ccpNewFCO) );
+						// Setting name to the newly created object
 						if (ccpMetaRole->Name == ccpMetaRole->Kind->Name)
 						{
 							ccpNewFCO->Name = ccpMetaRole->Kind->DisplayedName;


More information about the gme-commit mailing list