[commit] r1200 - trunk/GME/Common
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Wed Mar 2 10:42:23 CST 2011
Author: ksmyth
Date: Wed Mar 2 10:42:23 2011
New Revision: 1200
Log:
CComBstrObj move constructor
Modified:
trunk/GME/Common/CommonSmart.h
Modified: trunk/GME/Common/CommonSmart.h
==============================================================================
--- trunk/GME/Common/CommonSmart.h Wed Mar 2 10:01:01 2011 (r1199)
+++ trunk/GME/Common/CommonSmart.h Wed Mar 2 10:42:23 2011 (r1200)
@@ -149,6 +149,7 @@
CComBstrObj() : p(NULL) { }
CComBstrObj(LPCOLESTR q) { p = SysAllocString(q); }
CComBstrObj(const CComBstrObj &q) : p(NULL) { if(q.p) { p = SysAllocStringLen(q, q.Length()); } }
+ CComBstrObj(CComBstrObj &&q) { p = q.p; q.p = NULL; }
~CComBstrObj() { if(p) SysFreeString(p); }
const CComBstrObj &operator=(const CComBstrObj &q) { if(p) SysFreeString(p);
More information about the gme-commit
mailing list