diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-22 16:34:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-22 18:57:43 +0000 |
commit | 7419057e3ec4365748fa6456e207f40fd9e09c62 (patch) | |
tree | c7ae11659b42539efb0f8c6eef68c1ee14c10dca /svx/source/form/fmsrcimp.cxx | |
parent | c4cd079b8f613084a99a83b95c3968b65cbd8900 (diff) |
loplugin:unusedmethods in chart2..svx
Change-Id: Ifb6045885049733415895f58cdd911256f48323c
Reviewed-on: https://gerrit.libreoffice.org/29187
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/form/fmsrcimp.cxx')
-rw-r--r-- | svx/source/form/fmsrcimp.cxx | 52 |
1 files changed, 2 insertions, 50 deletions
diff --git a/svx/source/form/fmsrcimp.cxx b/svx/source/form/fmsrcimp.cxx index 2d442be42ed5..f1f1f49e1842 100644 --- a/svx/source/form/fmsrcimp.cxx +++ b/svx/source/form/fmsrcimp.cxx @@ -65,23 +65,6 @@ using namespace ::com::sun::star::beans; using namespace ::svxform; -// = FmSearchThread - -void FmSearchThread::run() -{ - osl_setThreadName("FmSearchThread"); - - m_pEngine->SearchNextImpl(); -}; - - -void FmSearchThread::onTerminated() -{ - m_aTerminationHdl.Call(this); - delete this; -} - - // = FmRecordCountListener // SMART_UNO_IMPLEMENTATION(FmRecordCountListener, UsrObject); @@ -320,37 +303,6 @@ void FmSearchEngine::BuildAndInsertFieldInfo(const Reference< css::container::XI } -OUString FmSearchEngine::FormatField(const FieldInfo& rField) -{ - if (!m_xFormatter.is()) - return OUString(); - // sonst werden Datumsflder zum Beispiel zu irgendeinem Default-Wert formatiert - - OUString sReturn; - try - { - if (rField.bDoubleHandling) - { - double fValue = rField.xContents->getDouble(); - if (!rField.xContents->wasNull()) - sReturn = m_xFormatter->convertNumberToString(rField.nFormatKey, fValue); - } - else - { - OUString sValue = rField.xContents->getString(); - if (!rField.xContents->wasNull()) - sReturn = m_xFormatter->formatString(rField.nFormatKey, sValue); - } - } - catch(...) - { - } - - - return sReturn; -} - - OUString FmSearchEngine::FormatField(sal_Int32 nWhich) { DBG_ASSERT((sal_uInt32)nWhich < m_aControlTexts.size(), "FmSearchEngine::FormatField(sal_Int32) : invalid position !"); @@ -983,7 +935,7 @@ void FmSearchEngine::SearchNextImpl() } -IMPL_LINK_NOARG_TYPED(FmSearchEngine, OnSearchTerminated, FmSearchThread*, void) +void FmSearchEngine::OnSearchTerminated() { if (!m_aProgressHandler.IsSet()) return; @@ -1077,7 +1029,7 @@ void FmSearchEngine::ImplStartNextSearch() m_bSearchingCurrently = true; SearchNextImpl(); - LINK(this, FmSearchEngine, OnSearchTerminated).Call(nullptr); + OnSearchTerminated(); } |