Revert "Make CFX_WideString::LockBuffer() completely unused."
[pdfium.git] / core / include / fxcrt / fx_string.h
index 0dbba4c..1efb814 100644 (file)
@@ -636,8 +636,15 @@ public:
         return m_pData ? m_pData->m_String : L"";
     }
 
+    // Implicit conversion to C-style wide string -- deprecated
+    operator FX_LPCWSTR() const
+    {
+        return m_pData ? m_pData->m_String : L"";
+    }
+
     void                                       Empty();
 
+
     FX_BOOL                                    IsEmpty() const
     {
         return !GetLength();