diff options
author | Tor Lillqvist <tml@collabora.com> | 2021-01-14 22:18:20 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2021-01-15 08:48:20 +0100 |
commit | 846bcc5adb82b601937681da7cec96c40253c2e7 (patch) | |
tree | 065454e0849339befa7a408943c30ed688befbe9 /sot | |
parent | 72f1cbe59a90921ef74bfda5ffb7f4db6578a1af (diff) |
OUString::matchAsciiL() can be used instead of the fresh startsWithAsciiL()
Revert the addition of the latter.
Change-Id: I93636a901cde401b0b7d923e052887f57dd58212
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109315
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/base/exchange.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sot/source/base/exchange.cxx b/sot/source/base/exchange.cxx index 84a2427d334b..d00565d618fd 100644 --- a/sot/source/base/exchange.cxx +++ b/sot/source/base/exchange.cxx @@ -442,7 +442,7 @@ SotClipboardFormatId SotExchange::GetFormat( const DataFlavor& rFlavor ) { const char* const pFormatMimeType = pFormatArray_Impl[ static_cast<int>(i) ].pMimeType; const sal_Int32 nFormatMimeTypeLen = rtl_str_getLength( pFormatMimeType ); - if( rMimeType.startsWithAsciiL( pFormatMimeType, nFormatMimeTypeLen ) && + if( rMimeType.matchAsciiL( pFormatMimeType, nFormatMimeTypeLen ) && ( rMimeType.getLength() == nFormatMimeTypeLen || rMimeType[ nFormatMimeTypeLen ] == ';' ) ) return ( (i == SotClipboardFormatId::STARCHARTDOCUMENT_50) |