diff options
Diffstat (limited to 'vcl/source/window/commandevent.cxx')
-rw-r--r-- | vcl/source/window/commandevent.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/window/commandevent.cxx b/vcl/source/window/commandevent.cxx index 5fa8e4c26730..25b3f15873d4 100644 --- a/vcl/source/window/commandevent.cxx +++ b/vcl/source/window/commandevent.cxx @@ -22,14 +22,14 @@ #include <vcl/commandevent.hxx> CommandExtTextInputData::CommandExtTextInputData( const OUString& rText, - const sal_uInt16* pTextAttr, sal_Int32 nCursorPos, sal_uInt16 nCursorFlags, + const ExtTextInputAttr* pTextAttr, sal_Int32 nCursorPos, sal_uInt16 nCursorFlags, bool bOnlyCursor) : maText(rText) { if ( pTextAttr && !maText.isEmpty() ) { - mpTextAttr = new sal_uInt16[maText.getLength()]; - memcpy( mpTextAttr, pTextAttr, maText.getLength()*sizeof(sal_uInt16) ); + mpTextAttr = new ExtTextInputAttr[maText.getLength()]; + memcpy( mpTextAttr, pTextAttr, maText.getLength()*sizeof(ExtTextInputAttr) ); } else { @@ -46,8 +46,8 @@ CommandExtTextInputData::CommandExtTextInputData( const CommandExtTextInputData& { if ( rData.mpTextAttr && !maText.isEmpty() ) { - mpTextAttr = new sal_uInt16[maText.getLength()]; - memcpy( mpTextAttr, rData.mpTextAttr, maText.getLength()*sizeof(sal_uInt16) ); + mpTextAttr = new ExtTextInputAttr[maText.getLength()]; + memcpy( mpTextAttr, rData.mpTextAttr, maText.getLength()*sizeof(ExtTextInputAttr) ); } else { |