diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-03-12 21:28:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-03-12 21:29:15 +0000 |
commit | e04fd835296e6fbe56e3a539038198a993b9bc13 (patch) | |
tree | 836a3b9f6aeaddb005a9642f929fddf3b1c737b7 /vcl | |
parent | 26bb45921a2eac1da79ed7f53f5f39575b998f61 (diff) |
fix dbgutil build
Change-Id: Icc541fdcf854a2e8f660c3d8c03448c5e8cb46f7
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/app/dbggui.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/app/dbggui.cxx b/vcl/source/app/dbggui.cxx index 39d0ba0d79c6..0b544e28f49b 100644 --- a/vcl/source/app/dbggui.cxx +++ b/vcl/source/app/dbggui.cxx @@ -1078,7 +1078,7 @@ IMPL_LINK( DbgDialog, ClickHdl, Button*, pButton ) DbgInfoDialog aInfoDialog( this ); aDbgInfoBuf[0] = '\0'; DbgXtorInfo( aDbgInfoBuf ); - OUString aInfoText( aDbgInfoBuf, RTL_TEXTENCODING_UTF8 ); + OUString aInfoText( aDbgInfoBuf, strlen(aDbgInfoBuf), RTL_TEXTENCODING_UTF8 ); aInfoDialog.SetText( "Debug InfoReport" ); aInfoDialog.SetInfoText( aInfoText ); aInfoDialog.Execute(); @@ -1098,7 +1098,7 @@ void DbgDialog::RequestHelp( const HelpEvent& rHEvt ) const sal_Char** pHelpStrs = pDbgHelpText; while ( *pHelpStrs ) { - aHelpText += *pHelpStrs; + aHelpText += OUString::createFromAscii(*pHelpStrs); pHelpStrs++; } aInfoDialog.SetText( "Debug Hilfe" ); @@ -1259,7 +1259,7 @@ void DbgDialogTest( Window* pWindow ) const ::com::sun::star::lang::Locale& rLocale = Application::GetSettings().GetLanguageTag().getLocale(); uno::Reference < i18n::XCharacterClassification > xCharClass = vcl::unohelper::CreateCharacterClassification(); OUString aUpperText = xCharClass->toUpper( aText, 0, aText.getLength(), rLocale ); - cAccel = aUpperText.GetChar( nAccelPos+1 ); + cAccel = aUpperText[nAccelPos+1]; if ( pChild->IsVisible() ) { if ( aAccelBuf[cAccel] ) @@ -1346,7 +1346,7 @@ void DbgDialogTest( Window* pWindow ) if( nAccelPos != STRING_NOTFOUND ) { aWidth = pChild->GetTextWidth( aText, 0, nAccelPos ) + - pChild->GetTextWidth( aText, nAccelPos+1, aText.Len() - nAccelPos - 1); + pChild->GetTextWidth( aText, nAccelPos+1, aText.getLength() - nAccelPos - 1); } else aWidth = pChild->GetTextWidth( aText ); @@ -1359,7 +1359,7 @@ void DbgDialogTest( Window* pWindow ) } } - if ( (i+1 < nChildCount) && aText.Len() ) + if ( (i+1 < nChildCount) && !aText.isEmpty() ) { Window* pTempChild = pGetChild->GetWindow( WINDOW_NEXT )->ImplGetWindow(); if ( (pTempChild->GetType() == WINDOW_EDIT) || @@ -1669,7 +1669,7 @@ void DbgPrintMsgBox( const char* pLine ) strcat( aDbgOutBuf, "\nAbort ? (Yes=abort / No=ignore / Cancel=crash)" ); #endif - SolarMessageBoxExecutor aMessageBox( OUString( aDbgOutBuf, RTL_TEXTENCODING_UTF8 ) ); + SolarMessageBoxExecutor aMessageBox( OUString( aDbgOutBuf, strlen(aDbgOutBuf), RTL_TEXTENCODING_UTF8 ) ); TimeValue aTimeout; aTimeout.Seconds = 2; aTimeout.Nanosec = 0; long nResult = aMessageBox.execute( aTimeout ); |