diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-17 15:21:54 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-18 08:33:50 +0000 |
commit | dd351c8524b270d1fd0f61998e10dba0ccd624b6 (patch) | |
tree | 9258389b18dfa876636cf4cc468672f79c95a0a9 /dbaccess/source/ui/inc/TableCopyHelper.hxx | |
parent | 4f250922ac59142e6e35e5663ffeefcc14052073 (diff) |
loplugin:constantparam in dbaccess
Change-Id: Icfe7d3d4630f4b5b3b2491ba56245257bad31bb8
Reviewed-on: https://gerrit.libreoffice.org/23349
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'dbaccess/source/ui/inc/TableCopyHelper.hxx')
-rw-r--r-- | dbaccess/source/ui/inc/TableCopyHelper.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dbaccess/source/ui/inc/TableCopyHelper.hxx b/dbaccess/source/ui/inc/TableCopyHelper.hxx index 98e0169d543e..1a3c00a47f27 100644 --- a/dbaccess/source/ui/inc/TableCopyHelper.hxx +++ b/dbaccess/source/ui/inc/TableCopyHelper.hxx @@ -36,10 +36,8 @@ namespace dbaui struct TAppSupportedSotFunctor : ::std::unary_function<DataFlavorExVector::value_type,bool> { ElementType eEntryType; - bool bQueryDrop; - TAppSupportedSotFunctor(const ElementType& _eEntryType,bool _bQueryDrop) + TAppSupportedSotFunctor(const ElementType& _eEntryType) : eEntryType(_eEntryType) - , bQueryDrop(_bQueryDrop) { } @@ -53,7 +51,7 @@ namespace dbaui return (E_TABLE == eEntryType); case SotClipboardFormatId::DBACCESS_QUERY: // query descriptor case SotClipboardFormatId::DBACCESS_COMMAND: // SQL command - return ((E_QUERY == eEntryType) || ( !bQueryDrop && E_TABLE == eEntryType)); + return E_QUERY == eEntryType; default: break; } return false; |