[commit] r1355 - trunk/GME/Gme

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Tue Jun 14 16:23:03 CDT 2011


Author: ksmyth
Date: Tue Jun 14 16:23:02 2011
New Revision: 1355

Log:
Need AddRef

Modified:
   trunk/GME/Gme/GMEOLEPanel.cpp
   trunk/GME/Gme/GMEOLEPanel.h

Modified: trunk/GME/Gme/GMEOLEPanel.cpp
==============================================================================
--- trunk/GME/Gme/GMEOLEPanel.cpp	Tue Jun 14 16:16:21 2011	(r1354)
+++ trunk/GME/Gme/GMEOLEPanel.cpp	Tue Jun 14 16:23:02 2011	(r1355)
@@ -117,6 +117,7 @@
 	CSizingControlBar * scb = dynamic_cast<CSizingControlBar *>( m_control);
 	if( scb) interf = scb->GetInterface();
 	*/
+	m_interf->AddRef();
 	return m_interf;
 }
 
@@ -168,9 +169,7 @@
 
 	TRY_DUAL(IID_IGMEOLEPanel)
 	{
-#pragma warning(disable: 4310) // cast truncates constant value
 		*isVisible = (pThis->GetVisible() == FALSE) ? VARIANT_FALSE : VARIANT_TRUE;
-#pragma warning(default: 4310) // cast truncates constant value
 		return NOERROR;
 	}
 	CATCH_ALL_DUAL
@@ -182,9 +181,7 @@
 
 	TRY_DUAL(IID_IGMEOLEPanel)
 	{
-#pragma warning(disable: 4310) // cast truncates constant value
 		*interf = pThis->GetInterface();
-#pragma warning(default: 4310) // cast truncates constant value
 		return NOERROR;
 	}
 	CATCH_ALL_DUAL

Modified: trunk/GME/Gme/GMEOLEPanel.h
==============================================================================
--- trunk/GME/Gme/GMEOLEPanel.h	Tue Jun 14 16:16:21 2011	(r1354)
+++ trunk/GME/Gme/GMEOLEPanel.h	Tue Jun 14 16:23:02 2011	(r1355)
@@ -22,7 +22,11 @@
 
 // Operations
 public:
-	void SetParams(CPane *control, CString name, IDispatch* interf = NULL){m_control = control;  m_name = name; m_interf = interf;}
+	void SetParams(CPane *control, CString name, IDispatch* interf = NULL) {
+		m_control = control;
+		m_name = name;
+		m_interf = interf;
+	}
 
 // Overrides
 public:


More information about the gme-commit mailing list