targeted string re-work

Change-Id: I03f894f52cd4115f4871a82eb6e481c5642362da
This commit is contained in:
Norbert Thiebaud
2012-05-28 11:37:45 -05:00
parent f9598738a6
commit c927e5ed4d
2 changed files with 19 additions and 19 deletions

View File

@@ -133,7 +133,7 @@ void SAL_CALL ListboxAddItem( HWND hwnd, const Any& aItem, const Reference< XInt
if ( !aItem.hasValue( ) ||
aItem.getValueType( ) != getCppuType((OUString*)0) )
throw IllegalArgumentException(
OUString(RTL_CONSTASCII_USTRINGPARAM( "invalid value type or any has no value" )),
"invalid value type or any has no value",
rXInterface,
aArgPos );
@@ -155,7 +155,7 @@ void SAL_CALL ListboxAddItems( HWND hwnd, const Any& aItemList, const Reference<
if ( !aItemList.hasValue( ) ||
aItemList.getValueType( ) != getCppuType((Sequence<OUString>*)0) )
throw IllegalArgumentException(
OUString(RTL_CONSTASCII_USTRINGPARAM( "invalid value type or any has no value" )),
"invalid value type or any has no value",
rXInterface,
aArgPos );
@@ -183,7 +183,7 @@ void SAL_CALL ListboxDeleteItem( HWND hwnd, const Any& aPosition, const Referenc
(aPosition.getValueType( ) != getCppuType((sal_Int16*)0)) &&
(aPosition.getValueType( ) != getCppuType((sal_Int8*)0)) ) )
throw IllegalArgumentException(
OUString(RTL_CONSTASCII_USTRINGPARAM( "invalid value type or any has no value" )),
"invalid value type or any has no value",
rXInterface,
aArgPos );
@@ -196,7 +196,7 @@ void SAL_CALL ListboxDeleteItem( HWND hwnd, const Any& aPosition, const Referenc
// index was not correct
if ( CB_ERR == lRet )
throw IllegalArgumentException(
OUString(RTL_CONSTASCII_USTRINGPARAM( "inavlid item position" )),
"inavlid item position",
rXInterface,
aArgPos );
}
@@ -235,7 +235,7 @@ void SAL_CALL ListboxSetSelectedItem( HWND hwnd, const Any& aPosition, const Ref
(aPosition.getValueType( ) != getCppuType((sal_Int16*)0)) &&
(aPosition.getValueType( ) != getCppuType((sal_Int8*)0)) ) )
throw IllegalArgumentException(
OUString(RTL_CONSTASCII_USTRINGPARAM( "invalid value type or any has no value" )),
"invalid value type or any has no value",
rXInterface,
aArgPos );
@@ -244,7 +244,7 @@ void SAL_CALL ListboxSetSelectedItem( HWND hwnd, const Any& aPosition, const Ref
if ( nPos < -1 )
throw IllegalArgumentException(
OUString(RTL_CONSTASCII_USTRINGPARAM("invalid index")),
"invalid index",
rXInterface,
aArgPos );
@@ -252,7 +252,7 @@ void SAL_CALL ListboxSetSelectedItem( HWND hwnd, const Any& aPosition, const Ref
if ( (CB_ERR == lRet) && (-1 != nPos) )
throw IllegalArgumentException(
OUString(RTL_CONSTASCII_USTRINGPARAM("invalid index")),
"invalid index",
rXInterface,
aArgPos );
}
@@ -329,7 +329,7 @@ void SAL_CALL CheckboxSetState(
if ( !aState.hasValue( ) ||
aState.getValueType( ) != getCppuType((sal_Bool*)0) )
throw IllegalArgumentException(
OUString(RTL_CONSTASCII_USTRINGPARAM( "invalid value type or any has no value" )),
"invalid value type or any has no value",
rXInterface,
aArgPos );

View File

@@ -58,7 +58,7 @@ using namespace ::com::sun::star::ui::dialogs::CommonFilePickerElementIds;
// id + 100
#define LB_LABEL_OFFSET 100
const rtl::OUString TILDE = OUString(RTL_CONSTASCII_USTRINGPARAM( "~" ));
const rtl::OUString TILDE( "~" );
const sal_Unicode TILDE_SIGN = L'~';
#define FOLDERPICKER_TITLE 500