diff options
Diffstat (limited to 'include/m_string.inl')
-rw-r--r-- | include/m_string.inl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/m_string.inl b/include/m_string.inl index b42bc3b99b..4615319416 100644 --- a/include/m_string.inl +++ b/include/m_string.inl @@ -1411,6 +1411,13 @@ BOOL CMStringT<BaseType, StringTraits>::GetEnvironmentVariable(PCXSTR pszVar) return bRetVal;
}
+// Set the string to the value of environment variable 'pszVar'
+template< typename BaseType, class StringTraits >
+typename CMStringT<BaseType, StringTraits>::PXSTR CMStringT<BaseType, StringTraits>::Detouch() const
+{
+ return StringTraits::MirCopy(CMStringT<BaseType, StringTraits>::GetString(), GetLength());
+}
+
/////////////////////////////////////////////////////////////////////////////////////////
template< typename BaseType, class StringTraits >
|