summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/misc/TokenWriter.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-09 12:14:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-09 13:52:30 +0200
commit12191a4f30078bb81c39a74a994ba7b2b410adaf (patch)
tree394626ae75e6b77e4159657847f894e4f7c9495b /dbaccess/source/ui/misc/TokenWriter.cxx
parent3a9854a92923df8013ca832c48aa9f284bcb1adc (diff)
make loplugin constantparam smarter about string params
Change-Id: Id3df69b38fd35f46735246a6d307a89aa10d4294 Reviewed-on: https://gerrit.libreoffice.org/37426 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/misc/TokenWriter.cxx')
-rw-r--r--dbaccess/source/ui/misc/TokenWriter.cxx14
1 files changed, 2 insertions, 12 deletions
diff --git a/dbaccess/source/ui/misc/TokenWriter.cxx b/dbaccess/source/ui/misc/TokenWriter.cxx
index 982d2bad9800..b3c390171ec3 100644
--- a/dbaccess/source/ui/misc/TokenWriter.cxx
+++ b/dbaccess/source/ui/misc/TokenWriter.cxx
@@ -74,13 +74,11 @@ using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::util;
-#define SBA_FORMAT_SELECTION_COUNT 4
#define CELL_X 1437
ODatabaseImportExport::ODatabaseImportExport(const svx::ODataAccessDescriptor& _aDataDescriptor,
const Reference< XComponentContext >& _rM,
- const Reference< css::util::XNumberFormatter >& _rxNumberF,
- const OUString& rExchange)
+ const Reference< css::util::XNumberFormatter >& _rxNumberF)
:m_bBookmarkSelection( false )
,m_xFormatter(_rxNumberF)
,m_xContext(_rM)
@@ -95,14 +93,6 @@ ODatabaseImportExport::ODatabaseImportExport(const svx::ODataAccessDescriptor& _
osl_atomic_increment( &m_refCount );
impl_initFromDescriptor( _aDataDescriptor, false );
-
- sal_Int32 nCount = comphelper::string::getTokenCount(rExchange, char(11));
- if( nCount > SBA_FORMAT_SELECTION_COUNT && !rExchange.getToken(4, ';').isEmpty())
- {
- m_pRowMarker = new sal_Int32[nCount-SBA_FORMAT_SELECTION_COUNT];
- for(sal_Int32 i=SBA_FORMAT_SELECTION_COUNT; i<nCount; ++i)
- m_pRowMarker[i-SBA_FORMAT_SELECTION_COUNT] = rExchange.getToken(i,char(11)).toInt32();
- }
osl_atomic_decrement( &m_refCount );
}
@@ -626,7 +616,7 @@ const char OHTMLImportExport::sIndentSource[nIndentMax+1] = "\t\t\t\t\t\t\t\t\t\
OHTMLImportExport::OHTMLImportExport(const svx::ODataAccessDescriptor& _aDataDescriptor,
const Reference< XComponentContext >& _rM,
const Reference< css::util::XNumberFormatter >& _rxNumberF)
- : ODatabaseImportExport(_aDataDescriptor,_rM,_rxNumberF,OUString())
+ : ODatabaseImportExport(_aDataDescriptor,_rM,_rxNumberF)
,m_nIndent(0)
#if OSL_DEBUG_LEVEL > 0
,m_bCheckFont(false)