diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-05-01 10:48:49 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-06-03 12:17:44 +0200 |
commit | 7723926deb6dcea1049faf49c2b34e27297a8bda (patch) | |
tree | 74f9db04c650df1f4deca5568296d10f9f2bcd0c /sw | |
parent | 856c1ea7c6f0ff08b3fb0dc23e9eb9483fa501ba (diff) |
Optimize: low-complexity checks first
Change-Id: Icbd126e098873f17d8e4f1d3127c0c0b7a0a82eb
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/dochdl/swdtflvr.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx index ac12153aa2b3..996632519910 100644 --- a/sw/source/uibase/dochdl/swdtflvr.cxx +++ b/sw/source/uibase/dochdl/swdtflvr.cxx @@ -2140,9 +2140,9 @@ bool SwTransferable::PasteDDE( TransferableDataHelper& rData, const sal_Int32 nNewlines{comphelper::string::getTokenCount(aExpand, '\n')}; // When data comes from a spreadsheet, we add a DDE-table - if( ( rData.HasFormat( SotClipboardFormatId::SYLK ) || - rData.HasFormat( SotClipboardFormatId::SYLK_BIGCAPS ) ) && - !aExpand.isEmpty() ) + if( !aExpand.isEmpty() && + ( rData.HasFormat( SotClipboardFormatId::SYLK ) || + rData.HasFormat( SotClipboardFormatId::SYLK_BIGCAPS ) ) ) { const sal_Int32 nRows = nNewlines ? nNewlines-1 : 0; const sal_Int32 nCols = comphelper::string::getTokenCount(aExpand.getToken(0, '\n'), '\t'); |