summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-20 19:58:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-21 09:17:31 +0100
commit5ce6e535bb9ea6a2e19731a6d7f58acd6a78b39b (patch)
treef09ca0d967239af449f4de59a5de4c82ffb40197 /vcl/win
parent9be876cd067cf95338e719645c7f3025757d5563 (diff)
String::GetBuffer()->OUString::getStr()
Change-Id: I427bb7b8e32d8a0040dbca1d0d0c765f526ba62f
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/source/window/salframe.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index 963bce2b44f6..273d28e696f2 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -4818,12 +4818,12 @@ static int ImplDrawItem(HWND, WPARAM wParam, LPARAM lParam )
hfntOld = (HFONT) SelectObject(pDI->hDC, (HFONT) CreateFontIndirect( &ncm.lfMenuFont ));
SIZE strSize;
- String aStr( pSalMenuItem->mText );
- GetTextExtentPoint32W( pDI->hDC, (LPWSTR) aStr.GetBuffer(),
- aStr.Len(), &strSize );
+ OUString aStr( pSalMenuItem->mText );
+ GetTextExtentPoint32W( pDI->hDC, (LPWSTR) aStr.getStr(),
+ aStr.getLength(), &strSize );
if(!DrawStateW( pDI->hDC, (HBRUSH)NULL, (DRAWSTATEPROC)NULL,
- (LPARAM)(LPWSTR) aStr.GetBuffer(),
+ (LPARAM)(LPWSTR) aStr.getStr(),
(WPARAM)0, aRect.left, aRect.top + (lineHeight - strSize.cy)/2, 0, 0,
DST_PREFIXTEXT | (fDisabled && !fSelected ? DSS_DISABLED : DSS_NORMAL) ) )
ImplWriteLastError(GetLastError(), "ImplDrawItem");
@@ -4832,15 +4832,15 @@ static int ImplDrawItem(HWND, WPARAM wParam, LPARAM lParam )
{
SIZE strSizeA;
aStr = pSalMenuItem->mAccelText;
- GetTextExtentPoint32W( pDI->hDC, (LPWSTR) aStr.GetBuffer(),
- aStr.Len(), &strSizeA );
+ GetTextExtentPoint32W( pDI->hDC, (LPWSTR) aStr.getStr(),
+ aStr.getLength(), &strSizeA );
TEXTMETRIC tm;
GetTextMetrics( pDI->hDC, &tm );
// position the accelerator string to the right but leave space for the
// (potential) submenu arrow (tm.tmMaxCharWidth)
if(!DrawStateW( pDI->hDC, (HBRUSH)NULL, (DRAWSTATEPROC)NULL,
- (LPARAM)(LPWSTR) aStr.GetBuffer(),
+ (LPARAM)(LPWSTR) aStr.getStr(),
(WPARAM)0, aRect.right-strSizeA.cx-tm.tmMaxCharWidth, aRect.top + (lineHeight - strSizeA.cy)/2, 0, 0,
DST_TEXT | (fDisabled && !fSelected ? DSS_DISABLED : DSS_NORMAL) ) )
ImplWriteLastError(GetLastError(), "ImplDrawItem");