< prev index next >

src/java.desktop/windows/native/libawt/windows/awt.h

Print this page

        

@@ -335,11 +335,11 @@
 class JavaStringBuffer
 {
 protected:
     LPWSTR m_pStr;
     jsize  m_dwSize;
-    LPCWSTR getNonEmptyString() {
+    LPWSTR getNonEmptyString() {
         return (NULL==m_pStr)
                 ? L""
                 : m_pStr;
     }
 

@@ -376,13 +376,13 @@
         //followed data copying process. And that is the reason why we ignore
         //the special case m_dwSize==0 here.
         m_pStr = (LPWSTR)SAFE_SIZE_ARRAY_REALLOC(safe_Realloc, m_pStr, m_dwSize+1, sizeof(WCHAR) );
     }
     //we are in UNICODE now, so LPWSTR:=:LPTSTR
-    operator LPCWSTR() { return getNonEmptyString(); }
+    operator LPWSTR() { return getNonEmptyString(); }
     operator LPARAM() { return (LPARAM)getNonEmptyString(); }
-    const void *GetData() { return (const void *)getNonEmptyString(); }
+    void *GetData() { return (void *)getNonEmptyString(); }
     jsize  GetSize() { return m_dwSize; }
 };
 
 
 #endif  /* _AWT_H_ */
< prev index next >