< prev index next >

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

Print this page

        

*** 335,345 **** class JavaStringBuffer { protected: LPWSTR m_pStr; jsize m_dwSize; ! LPCWSTR getNonEmptyString() { return (NULL==m_pStr) ? L"" : m_pStr; } --- 335,345 ---- class JavaStringBuffer { protected: LPWSTR m_pStr; jsize m_dwSize; ! LPWSTR getNonEmptyString() { return (NULL==m_pStr) ? L"" : m_pStr; }
*** 376,388 **** //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 LPARAM() { return (LPARAM)getNonEmptyString(); } ! const void *GetData() { return (const void *)getNonEmptyString(); } jsize GetSize() { return m_dwSize; } }; #endif /* _AWT_H_ */ --- 376,388 ---- //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 LPWSTR() { return getNonEmptyString(); } operator LPARAM() { return (LPARAM)getNonEmptyString(); } ! void *GetData() { return (void *)getNonEmptyString(); } jsize GetSize() { return m_dwSize; } }; #endif /* _AWT_H_ */
< prev index next >