From 37f8ea642cd191e7bdbf3596f41e7bb28212472b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 24 Jan 2019 14:07:17 +0200 Subject: loplugin:unusedmethods Change-Id: Ifb0c479e9d1aed1cd90d78ed23902fc05db556d6 Reviewed-on: https://gerrit.libreoffice.org/66862 Tested-by: Jenkins Reviewed-by: Noel Grandin --- compilerplugins/clang/unusedmethods.results | 250 +++++++++------------ .../clang/unusedmethods.unused-returns.results | 26 +-- .../source/drivers/mysqlc/mysqlc_general.cxx | 5 - .../source/drivers/mysqlc/mysqlc_general.hxx | 2 - sc/inc/autoform.hxx | 1 - sc/source/core/tool/autoform.cxx | 11 - sw/inc/authfld.hxx | 1 - sw/source/core/fields/authfld.cxx | 5 - sw/source/uibase/inc/uitool.hxx | 1 - sw/source/uibase/utlui/uitool.cxx | 13 -- 10 files changed, 114 insertions(+), 201 deletions(-) diff --git a/compilerplugins/clang/unusedmethods.results b/compilerplugins/clang/unusedmethods.results index 9cebe9adfe9e..39dcf5ecc839 100644 --- a/compilerplugins/clang/unusedmethods.results +++ b/compilerplugins/clang/unusedmethods.results @@ -26,6 +26,8 @@ connectivity/source/drivers/firebird/Util.hxx:66 const class rtl::OUString & connectivity::firebird::ColumnTypeInfo::getCharacterSet() const connectivity/source/drivers/mork/mork_helper.cxx:37 int main(int,char **) +connectivity/source/drivers/mysqlc/mysqlc_general.hxx:108 + class rtl::OUString mysqlc_sdbc_driver::mysqlTypeToStr(const struct st_mysql_field *) connectivity/source/inc/dbase/dindexnode.hxx:70 _Bool connectivity::dbase::ONDXKey::operator<(const class connectivity::dbase::ONDXKey &) const connectivity/source/inc/java/sql/Connection.hxx:63 @@ -64,8 +66,6 @@ dbaccess/source/filter/hsqldb/fbalterparser.hxx:20 void dbahsql::FbAlterStmtParser::ensureProperTableLengths() const dbaccess/source/filter/hsqldb/parseschema.hxx:82 const class std::__debug::map >, struct std::less, class std::allocator > > > > & dbahsql::SchemaParser::getPrimaryKeys() const -dbaccess/source/ui/browser/genericcontroller.cxx:1213 - const type-parameter-?-? & dbaui::(anonymous namespace)::SGI_identity::operator()(const type-parameter-?-? &) const dbaccess/source/ui/inc/dsmeta.hxx:88 class __gnu_debug::_Safe_iterator, class std::__debug::set, class std::allocator > > dbaui::FeatureSet::begin() const dbaccess/source/ui/inc/dsmeta.hxx:89 @@ -84,12 +84,8 @@ desktop/inc/lib/init.hxx:47 _Bool desktop::CallbackFlushHandler::isEventLatchOn() const desktop/inc/lib/init.hxx:49 _Bool desktop::CallbackFlushHandler::isPartTilePainting() const -drawinglayer/source/tools/emfpcustomlinecap.hxx:37 +drawinglayer/source/tools/emfpcustomlinecap.hxx:38 void emfplushelper::EMFPCustomLineCap::SetAttributes(struct com::sun::star::rendering::StrokeAttributes &) -drawinglayer/source/tools/emfppen.hxx:71 - void emfplushelper::EMFPPen::SetStrokeWidth(struct com::sun::star::rendering::StrokeAttributes &,const struct emfplushelper::EmfPlusHelperData &,const class basegfx::B2DHomMatrix &) -drawinglayer/source/tools/emfppen.hxx:73 - void emfplushelper::EMFPPen::SetStrokeAttributes(struct com::sun::star::rendering::StrokeAttributes &) drawinglayer/source/tools/emfpstringformat.hxx:51 _Bool emfplushelper::EMFPStringFormat::NoFitBlackBox() const drawinglayer/source/tools/emfpstringformat.hxx:52 @@ -440,12 +436,6 @@ include/i18nlangtag/languagetag.hxx:261 enum LanguageTag::ScriptType LanguageTag::getScriptType() const include/o3tl/any.hxx:155 class boost::optional o3tl::tryAccess(const class com::sun::star::uno::Any &) -include/o3tl/array_view.hxx:62 - o3tl::array_view::array_view(type-parameter-?-? *,unsigned long) -include/o3tl/array_view.hxx:135 - _Bool o3tl::array_view::operator<(const array_view &) const -include/o3tl/array_view.hxx:155 - unsigned long std::hash::operator()(array_view) const include/o3tl/cow_wrapper.hxx:310 type-parameter-?-? * o3tl::cow_wrapper::get() include/o3tl/enumarray.hxx:105 @@ -456,54 +446,8 @@ include/o3tl/enumarray.hxx:135 _Bool o3tl::enumarray_const_iterator::operator==(const enumarray_const_iterator &) const include/o3tl/safeint.hxx:79 typename enable_if::value, type-parameter-?-?>::type o3tl::saturating_sub(type-parameter-?-?,type-parameter-?-?) -include/o3tl/string_view.hxx:172 - o3tl::basic_string_view::basic_string_view() -include/o3tl/string_view.hxx:486 - o3tl::basic_string_view::basic_string_view(const basic_string > &) -include/o3tl/string_view.hxx:628 - _Bool o3tl::operator==(basic_string_view,basic_string_view) -include/o3tl/string_view.hxx:639 - _Bool o3tl::operator==(typename decay >::type,basic_string_view) -include/o3tl/string_view.hxx:645 - _Bool o3tl::operator!=(basic_string_view,basic_string_view) -include/o3tl/string_view.hxx:650 - _Bool o3tl::operator!=(basic_string_view,typename decay >::type) -include/o3tl/string_view.hxx:656 - _Bool o3tl::operator!=(typename decay >::type,basic_string_view) -include/o3tl/string_view.hxx:662 - _Bool o3tl::operator<(basic_string_view,basic_string_view) -include/o3tl/string_view.hxx:667 - _Bool o3tl::operator<(basic_string_view,typename decay >::type) -include/o3tl/string_view.hxx:673 - _Bool o3tl::operator<(typename decay >::type,basic_string_view) -include/o3tl/string_view.hxx:679 - _Bool o3tl::operator>(basic_string_view,basic_string_view) -include/o3tl/string_view.hxx:684 - _Bool o3tl::operator>(basic_string_view,typename decay >::type) -include/o3tl/string_view.hxx:690 - _Bool o3tl::operator>(typename decay >::type,basic_string_view) -include/o3tl/string_view.hxx:696 - _Bool o3tl::operator<=(basic_string_view,basic_string_view) -include/o3tl/string_view.hxx:701 - _Bool o3tl::operator<=(basic_string_view,typename decay >::type) -include/o3tl/string_view.hxx:707 - _Bool o3tl::operator<=(typename decay >::type,basic_string_view) -include/o3tl/string_view.hxx:713 - _Bool o3tl::operator>=(basic_string_view,basic_string_view) -include/o3tl/string_view.hxx:718 - _Bool o3tl::operator>=(basic_string_view,typename decay >::type) -include/o3tl/string_view.hxx:724 - _Bool o3tl::operator>=(typename decay >::type,basic_string_view) -include/o3tl/string_view.hxx:774 - unsigned long std::hash::operator()(class o3tl::basic_string_view >) -include/o3tl/string_view.hxx:779 - unsigned long std::hash::operator()(class o3tl::basic_string_view >) -include/o3tl/string_view.hxx:784 - unsigned long std::hash::operator()(class o3tl::basic_string_view >) -include/o3tl/string_view.hxx:789 - unsigned long std::hash::operator()(class o3tl::basic_string_view >) -include/o3tl/string_view.hxx:801 - class rtl::OUString o3tl::toOUString(class o3tl::basic_string_view >) +include/o3tl/span.hxx:51 + o3tl::span::span(type-parameter-?-? *,long) include/o3tl/strong_int.hxx:112 strong_int o3tl::strong_int::operator--(int) include/o3tl/typed_flags_set.hxx:113 @@ -542,9 +486,9 @@ include/opencl/OpenCLZone.hxx:42 _Bool OpenCLZone::isInInitialTest() include/sfx2/basedlgs.hxx:137 void SfxModelessDialogController::FillInfo(struct SfxChildWinInfo &) const -include/sfx2/charwin.hxx:63 - void SvxCharView::connect_focus_in(const class Link &) include/sfx2/charwin.hxx:64 + void SvxCharView::connect_focus_in(const class Link &) +include/sfx2/charwin.hxx:65 void SvxCharView::connect_focus_out(const class Link &) include/sfx2/childwin.hxx:167 void SfxChildWindow::ClearController() @@ -562,6 +506,8 @@ include/svl/itempool.hxx:191 void SfxItemPool::dumpAsXml(struct _xmlTextWriter *) const include/svtools/ctrlbox.hxx:156 long LineListBox::GetWidth() const +include/svtools/DocumentToGraphicRenderer.hxx:106 + _Bool DocumentToGraphicRenderer::isImpress() const include/svx/ClassificationEditView.hxx:41 void svx::ClassificationEditView::SetCharAttributes() include/svx/ClassificationEditView.hxx:47 @@ -680,13 +626,15 @@ include/vcl/field.hxx:218 void MetricFormatter::SetBaseValue(long,enum FieldUnit) include/vcl/gdimtf.hxx:110 _Bool GDIMetaFile::operator!=(const class GDIMetaFile &) const +include/vcl/gdimtf.hxx:202 + void GDIMetaFile::dumpAsXml(const class rtl::OUString &) const include/vcl/gradient.hxx:104 _Bool Gradient::operator!=(const class Gradient &) const include/vcl/hatch.hxx:55 _Bool Hatch::operator!=(const class Hatch &) const include/vcl/inputctx.hxx:62 _Bool InputContext::operator!=(const class InputContext &) const -include/vcl/ITiledRenderable.hxx:286 +include/vcl/ITiledRenderable.hxx:288 class Pointer vcl::ITiledRenderable::getPointer() include/vcl/opengl/OpenGLHelper.hxx:62 void OpenGLHelper::renderToFile(long,long,const class rtl::OUString &) @@ -724,109 +672,113 @@ include/vcl/svmain.hxx:27 _Bool ImplSVMainHook(int *) include/vcl/syswin.hxx:172 void SystemWindow::SetIdleDebugName(const char *) -include/vcl/tabdlg.hxx:50 +include/vcl/tabdlg.hxx:49 class vcl::Window * TabDialog::GetViewWindow() const -include/vcl/textrectinfo.hxx:44 +include/vcl/textrectinfo.hxx:45 _Bool TextRectInfo::operator!=(const class TextRectInfo &) const -include/vcl/threadex.hxx:98 +include/vcl/threadex.hxx:96 vcl::solarthread::detail::GenericSolarThreadExecutor::GenericSolarThreadExecutor(const type-parameter-?-? &) -include/vcl/txtattr.hxx:57 +include/vcl/txtattr.hxx:56 _Bool TextAttrib::operator!=(const class TextAttrib &) const -include/vcl/uitest/uiobject.hxx:273 +include/vcl/uitest/uiobject.hxx:274 TabPageUIObject::TabPageUIObject(const class VclPtr &) -include/vcl/uitest/uiobject.hxx:281 +include/vcl/uitest/uiobject.hxx:282 class std::unique_ptr > TabPageUIObject::create(class vcl::Window *) -include/vcl/uitest/uiobject.hxx:344 +include/vcl/uitest/uiobject.hxx:345 SpinUIObject::SpinUIObject(const class VclPtr &) -include/vcl/uitest/uiobject.hxx:352 +include/vcl/uitest/uiobject.hxx:353 class std::unique_ptr > SpinUIObject::create(class vcl::Window *) include/vcl/wall.hxx:98 _Bool Wallpaper::operator!=(const class Wallpaper &) const -include/vcl/weld.hxx:74 +include/vcl/weld.hxx:99 class rtl::OString weld::Widget::get_buildable_name() const -include/vcl/weld.hxx:79 +include/vcl/weld.hxx:104 int weld::Widget::get_grid_left_attach() const -include/vcl/weld.hxx:85 +include/vcl/weld.hxx:110 _Bool weld::Widget::get_hexpand() const -include/vcl/weld.hxx:86 +include/vcl/weld.hxx:111 void weld::Widget::set_vexpand(_Bool) -include/vcl/weld.hxx:87 +include/vcl/weld.hxx:112 _Bool weld::Widget::get_vexpand() const -include/vcl/weld.hxx:167 +include/vcl/weld.hxx:192 void weld::ScrolledWindow::hadjustment_configure(int,int,int,int,int,int) -include/vcl/weld.hxx:173 +include/vcl/weld.hxx:198 void weld::ScrolledWindow::hadjustment_set_upper(int) -include/vcl/weld.hxx:175 +include/vcl/weld.hxx:200 void weld::ScrolledWindow::set_hpolicy(enum VclPolicyType) -include/vcl/weld.hxx:176 +include/vcl/weld.hxx:201 enum VclPolicyType weld::ScrolledWindow::get_hpolicy() const -include/vcl/weld.hxx:181 +include/vcl/weld.hxx:206 int weld::ScrolledWindow::get_hscroll_height() const -include/vcl/weld.hxx:189 +include/vcl/weld.hxx:214 void weld::ScrolledWindow::vadjustment_set_upper(int) -include/vcl/weld.hxx:190 +include/vcl/weld.hxx:215 int weld::ScrolledWindow::vadjustment_get_page_size() const -include/vcl/weld.hxx:220 +include/vcl/weld.hxx:245 class rtl::OUString weld::Notebook::get_tab_label_text(const class rtl::OString &) const -include/vcl/weld.hxx:252 +include/vcl/weld.hxx:277 struct SystemEnvData weld::Window::get_system_data() const -include/vcl/weld.hxx:472 +include/vcl/weld.hxx:497 void weld::TreeView::append(class weld::TreeIter *,const class rtl::OUString &,const class rtl::OUString &,const class rtl::OUString &) -include/vcl/weld.hxx:477 +include/vcl/weld.hxx:502 void weld::TreeView::append(const class rtl::OUString &,const class rtl::OUString &,class VirtualDevice &) -include/vcl/weld.hxx:499 +include/vcl/weld.hxx:524 void weld::TreeView::set_top_entry(int) -include/vcl/weld.hxx:558 +include/vcl/weld.hxx:583 void weld::TreeView::select_all() -include/vcl/weld.hxx:657 +include/vcl/weld.hxx:682 void weld::MenuButton::append_item(const class rtl::OUString &,const class rtl::OUString &) -include/vcl/weld.hxx:665 +include/vcl/weld.hxx:690 void weld::MenuButton::append_item(const class rtl::OUString &,const class rtl::OUString &,const class rtl::OUString &) -include/vcl/weld.hxx:669 +include/vcl/weld.hxx:694 void weld::MenuButton::append_item(const class rtl::OUString &,const class rtl::OUString &,class VirtualDevice &) -include/vcl/weld.hxx:724 +include/vcl/weld.hxx:749 void weld::Entry::signal_insert_text(class rtl::OUString &) -include/vcl/weld.hxx:736 +include/vcl/weld.hxx:761 int weld::Entry::get_position() const -include/vcl/weld.hxx:798 +include/vcl/weld.hxx:823 int weld::SpinButton::get_min() const -include/vcl/weld.hxx:840 +include/vcl/weld.hxx:865 void weld::FormattedSpinButton::set_max(double) -include/vcl/weld.hxx:1103 +include/vcl/weld.hxx:896 + void weld::EntryTreeView::EntryModifyHdl(const class weld::Entry &) +include/vcl/weld.hxx:1129 class Size weld::MetricSpinButton::get_size_request() const -include/vcl/weld.hxx:1114 +include/vcl/weld.hxx:1140 void weld::MetricSpinButton::set_position(int) -include/vcl/weld.hxx:1161 +include/vcl/weld.hxx:1187 _Bool weld::TimeSpinButton::get_sensitive() const -include/vcl/weld.hxx:1162 +include/vcl/weld.hxx:1188 _Bool weld::TimeSpinButton::get_visible() const -include/vcl/weld.hxx:1163 +include/vcl/weld.hxx:1189 void weld::TimeSpinButton::grab_focus() -include/vcl/weld.hxx:1164 +include/vcl/weld.hxx:1190 _Bool weld::TimeSpinButton::has_focus() const -include/vcl/weld.hxx:1165 +include/vcl/weld.hxx:1191 void weld::TimeSpinButton::show(_Bool) -include/vcl/weld.hxx:1166 +include/vcl/weld.hxx:1192 void weld::TimeSpinButton::hide() -include/vcl/weld.hxx:1167 +include/vcl/weld.hxx:1193 void weld::TimeSpinButton::save_value() -include/vcl/weld.hxx:1168 +include/vcl/weld.hxx:1194 _Bool weld::TimeSpinButton::get_value_changed_from_saved() const -include/vcl/weld.hxx:1280 +include/vcl/weld.hxx:1305 + void weld::Menu::set_sensitive(const class rtl::OString &,_Bool) +include/vcl/weld.hxx:1306 void weld::Menu::set_active(const class rtl::OString &,_Bool) -include/vcl/weld.hxx:1290 +include/vcl/weld.hxx:1316 void weld::Menu::append_check(const class rtl::OUString &,const class rtl::OUString &) -include/vcl/weld.hxx:1294 +include/vcl/weld.hxx:1320 void weld::Menu::append(const class rtl::OUString &,const class rtl::OUString &,const class rtl::OUString &) -include/vcl/weld.hxx:1310 +include/vcl/weld.hxx:1336 void weld::SizeGroup::set_mode(enum VclSizeGroupMode) -include/vcl/weld.hxx:1332 +include/vcl/weld.hxx:1358 class std::unique_ptr > weld::Builder::weld_window(const class rtl::OString &,_Bool) -include/vcl/weld.hxx:1442 +include/vcl/weld.hxx:1468 class rtl::OUString weld::MessageDialogController::get_primary_text() const -include/vcl/window.hxx:418 +include/vcl/window.hxx:407 const char * ImplDbgCheckWindow(const void *) -include/vcl/window.hxx:1229 +include/vcl/window.hxx:1211 class Size vcl::Window::PaintActiveFloatingWindow(class VirtualDevice &) const libreofficekit/qa/gtktiledviewer/gtv-signal-handlers.hxx:35 void openLokDialog(struct _GtkWidget *,void *) @@ -844,6 +796,8 @@ oox/inc/drawingml/textparagraphproperties.hxx:100 void oox::drawingml::TextParagraphProperties::setLineSpacing(const class oox::drawingml::TextSpacing &) sc/inc/address.hxx:652 _Bool ScRange::operator<=(const class ScRange &) const +sc/inc/autoform.hxx:333 + class __gnu_debug::_Safe_iterator > > >, class std::__debug::map >, struct DefaultFirstEntry, class std::allocator > > > > > ScAutoFormat::find(const class ScAutoFormatData *) sc/inc/bigrange.hxx:73 _Bool ScBigAddress::operator!=(const class ScBigAddress &) const sc/inc/columniterator.hxx:82 @@ -868,8 +822,6 @@ sc/inc/stlalgorithm.hxx:61 _Bool sc::AlignedAllocator::operator==(const AlignedAllocator &) const sc/inc/stlalgorithm.hxx:62 _Bool sc::AlignedAllocator::operator!=(const AlignedAllocator &) const -sc/inc/subtotal.hxx:45 - double WelfordRunner::getMean() const sc/inc/table.hxx:324 _Bool ScTable::IsColRowTabValid(const short,const int,const short) const sc/inc/userlist.hxx:86 @@ -972,7 +924,7 @@ sd/source/ui/inc/filedlg.hxx:54 _Bool SdOpenSoundFileDialog::IsInsertAsLinkSelected() sd/source/ui/inc/optsitem.hxx:178 _Bool SdOptionsContents::operator==(const class SdOptionsContents &) const -sd/source/ui/inc/unomodel.hxx:136 +sd/source/ui/inc/unomodel.hxx:137 _Bool SdXImpressDocument::operator==(const class SdXImpressDocument &) const sfx2/source/appl/shutdownicon.hxx:82 class rtl::OUString ShutdownIcon::getShortcutName() @@ -1022,9 +974,9 @@ slideshow/source/engine/animationfactory.cxx:548 typename type-parameter-?-?::ValueType slideshow::internal::(anonymous namespace)::GenericAnimation::getUnderlyingValue() const slideshow/source/engine/opengl/TransitionImpl.hxx:180 void OGLTransitionImpl::finish(double,double,double,double,double) -svgio/inc/svgstyleattributes.hxx:346 +svgio/inc/svgstyleattributes.hxx:347 class svgio::svgreader::SvgNumber svgio::svgreader::SvgStyleAttributes::getStrokeDashOffset() const -svgio/inc/svgstyleattributes.hxx:370 +svgio/inc/svgstyleattributes.hxx:371 enum svgio::svgreader::FontStretch svgio::svgreader::SvgStyleAttributes::getFontStretch() const svx/inc/sdr/contact/viewcontactofgraphic.hxx:56 class SdrGrafObj & sdr::contact::ViewContactOfGraphic::GetGrafObject() @@ -1038,6 +990,8 @@ svx/source/svdraw/svdpdf.hxx:96 double ImpSdrPdfImport::Matrix::f() const svx/source/svdraw/svdpdf.hxx:149 class std::__cxx11::basic_string, class std::allocator > ImpSdrPdfImport::Matrix::toString() const +sw/inc/authfld.hxx:99 + class SwAuthEntry * SwAuthorityFieldType::GetFieldByPos(unsigned short) sw/inc/dbgoutsw.hxx:53 const char * dbg_out(const void *) sw/inc/dbgoutsw.hxx:55 @@ -1100,21 +1054,21 @@ sw/inc/docary.hxx:254 class SwFrameFormat *const & SwFrameFormats::front() const sw/inc/docary.hxx:255 class SwFrameFormat *const & SwFrameFormats::back() const -sw/inc/editsh.hxx:373 +sw/inc/editsh.hxx:375 void SwEditShell::ValidateCurrentParagraphSignatures(_Bool) -sw/inc/extinput.hxx:49 +sw/inc/extinput.hxx:47 class SwExtTextInput * SwExtTextInput::GetPrev() -sw/inc/extinput.hxx:50 +sw/inc/extinput.hxx:48 const class SwExtTextInput * SwExtTextInput::GetPrev() const -sw/inc/fmtfollowtextflow.hxx:41 +sw/inc/fmtfollowtextflow.hxx:40 SwFormatFollowTextFlow::SwFormatFollowTextFlow(_Bool,_Bool) sw/inc/IDocumentLinksAdministration.hxx:53 _Bool IDocumentLinksAdministration::GetData(const class rtl::OUString &,const class rtl::OUString &,class com::sun::star::uno::Any &) const sw/inc/IDocumentLinksAdministration.hxx:55 _Bool IDocumentLinksAdministration::SetData(const class rtl::OUString &,const class rtl::OUString &,const class com::sun::star::uno::Any &) -sw/inc/IMark.hxx:64 +sw/inc/IMark.hxx:63 _Bool sw::mark::IMark::operator<(const class sw::mark::IMark &) const -sw/inc/IMark.hxx:66 +sw/inc/IMark.hxx:65 _Bool sw::mark::IMark::operator==(const class sw::mark::IMark &) const sw/inc/node.hxx:231 const class IDocumentStylePoolAccess & SwNode::getIDocumentStylePoolAccess() const @@ -1158,31 +1112,31 @@ sw/inc/swrect.hxx:134 void SwRect::SetLowerLeftCorner(const class Point &) sw/inc/swrect.hxx:147 _Bool SwRect::OverStepTop(long) const -sw/inc/viscrs.hxx:201 - class SwShellTableCursor * SwShellTableCursor::GetNext() sw/inc/viscrs.hxx:202 - const class SwShellTableCursor * SwShellTableCursor::GetNext() const + class SwShellTableCursor * SwShellTableCursor::GetNext() sw/inc/viscrs.hxx:203 - class SwShellTableCursor * SwShellTableCursor::GetPrev() + const class SwShellTableCursor * SwShellTableCursor::GetNext() const sw/inc/viscrs.hxx:204 + class SwShellTableCursor * SwShellTableCursor::GetPrev() +sw/inc/viscrs.hxx:205 const class SwShellTableCursor * SwShellTableCursor::GetPrev() const sw/qa/extras/inc/swmodeltestbase.hxx:620 class com::sun::star::uno::Reference SwModelTestBase::getParagraphAnchoredObject(const int,const class com::sun::star::uno::Reference &) const -sw/qa/extras/uiwriter/uiwriter.cxx:6838 +sw/qa/extras/uiwriter/uiwriter.cxx:6837 int main() -sw/source/core/access/accportions.cxx:69 - unsigned long FindBreak(const vector > &,type-parameter-?-?) sw/source/core/access/accportions.cxx:73 + unsigned long FindBreak(const vector > &,type-parameter-?-?) +sw/source/core/access/accportions.cxx:77 unsigned long FindLastBreak(const vector > &,type-parameter-?-?) -sw/source/core/inc/frame.hxx:908 +sw/source/core/inc/frame.hxx:911 void SwFrame::dumpTopMostAsXml(struct _xmlTextWriter *) const -sw/source/core/inc/frame.hxx:1341 +sw/source/core/inc/frame.hxx:1349 class Size SwRectFnSet::GetSize(const class SwRect &) const -sw/source/core/inc/frame.hxx:1372 +sw/source/core/inc/frame.hxx:1380 long SwRectFnSet::LeftDist(const class SwRect &,long) const -sw/source/core/inc/frame.hxx:1373 - long SwRectFnSet::RightDist(const class SwRect &,long) const sw/source/core/inc/frame.hxx:1381 + long SwRectFnSet::RightDist(const class SwRect &,long) const +sw/source/core/inc/frame.hxx:1389 long SwRectFnSet::XInc(long,long) const sw/source/core/inc/mvsave.hxx:170 _Bool ZSortFly::operator==(const class ZSortFly &) const @@ -1194,10 +1148,8 @@ sw/source/filter/ww8/ww8struc.hxx:244 WW8_BRCVer6::WW8_BRCVer6() sw/source/uibase/inc/swcont.hxx:85 _Bool SwContent::operator==(const class SwContent &) const -sw/source/uibase/inc/swuicnttab.hxx:419 - class rtl::OUString SwTOXEntryTabPage::GetLevelHelp(unsigned short) const -sw/source/uibase/inc/uitool.hxx:89 - void FillCharStyleListBox(class ListBox &,class SwDocShell *,_Bool,_Bool) +sw/source/uibase/inc/uitool.hxx:92 + int InsertStringSorted(const class rtl::OUString &,class ListBox &,int) test/source/sheet/xsubtotalfield.cxx:28 _Bool CppUnit::assertion_traits::equal(const class com::sun::star::uno::Sequence &,const class com::sun::star::uno::Sequence &) test/source/sheet/xsubtotalfield.cxx:34 @@ -1214,16 +1166,16 @@ ucb/source/ucp/webdav-neon/NeonUri.hxx:64 _Bool webdav_ucp::NeonUri::operator!=(const class webdav_ucp::NeonUri &) const vcl/inc/bitmapwriteaccess.hxx:75 void BitmapWriteAccess::SetFillColor() -vcl/inc/fontinstance.hxx:66 - void LogicalFontInstance::SetAverageWidthFactor(double) vcl/inc/fontinstance.hxx:67 + void LogicalFontInstance::SetAverageWidthFactor(double) +vcl/inc/fontinstance.hxx:68 double LogicalFontInstance::GetAverageWidthFactor() const -vcl/inc/fontinstance.hxx:89 +vcl/inc/fontinstance.hxx:90 void LogicalFontInstance::ReleaseHbFont() vcl/inc/fontselect.hxx:49 _Bool FontSelectPattern::operator!=(const class FontSelectPattern &) const vcl/inc/headless/svpgdi.hxx:244 - void SvpSalGraphics::drawBitmap(const struct SalTwoRect &,struct BitmapBuffer *,enum _cairo_operator) + void SvpSalGraphics::drawBitmap(const struct SalTwoRect &,const struct BitmapBuffer *,enum _cairo_operator) vcl/inc/impgraph.hxx:58 _Bool GraphicID::operator==(const class GraphicID &) const vcl/inc/opengl/BufferObject.hxx:50 @@ -1290,7 +1242,7 @@ vcl/inc/unx/salframe.h:187 enum SalFrameStyleFlags X11SalFrame::GetStyle() const vcl/inc/unx/salgdi.h:306 void X11SalGraphics::releaseGlyphPeer() -vcl/source/app/scheduler.cxx:81 +vcl/source/app/scheduler.cxx:82 basic_ostream & (anonymous namespace)::operator<<(basic_ostream &,const class Idle &) vcl/source/edit/textdat2.hxx:85 class __gnu_debug::_Safe_iterator > *, class std::__cxx1998::vector >, class std::allocator > > > >, class std::__debug::vector >, class std::allocator > > > > TETextPortionList::begin() const @@ -1308,10 +1260,10 @@ vcl/source/fontsubset/xlat.hxx:34 unsigned short vcl::TranslateChar15(unsigned short) vcl/source/fontsubset/xlat.hxx:35 unsigned short vcl::TranslateChar16(unsigned short) +workdir/LexTarget/l10ntools/source/cfglex.cxx:3721 + void YYWarning(const char *) workdir/LexTarget/l10ntools/source/xrmlex.cxx:715 void YYWarning() -workdir/LexTarget/l10ntools/source/xrmlex.cxx:2211 - void YYWarning(const char *) writerfilter/source/ooxml/OOXMLPropertySet.hxx:176 class __gnu_debug::_Safe_iterator *, class std::__cxx1998::vector, class std::allocator > > >, class std::__debug::vector, class std::allocator > > > writerfilter::ooxml::OOXMLPropertySet::begin() const writerfilter/source/ooxml/OOXMLPropertySet.hxx:177 diff --git a/compilerplugins/clang/unusedmethods.unused-returns.results b/compilerplugins/clang/unusedmethods.unused-returns.results index c0080f4501f7..bd4d82d95914 100644 --- a/compilerplugins/clang/unusedmethods.unused-returns.results +++ b/compilerplugins/clang/unusedmethods.unused-returns.results @@ -72,6 +72,8 @@ include/LibreOfficeKit/LibreOfficeKit.hxx:776 char * lok::Office::getVersionInfo() include/LibreOfficeKit/LibreOfficeKit.hxx:790 _Bool lok::Office::runMacro(const char *) +include/LibreOfficeKit/LibreOfficeKit.hxx:798 + _Bool lok::Office::signDocument(const char *,const unsigned char *,const int,const unsigned char *,const int) include/oox/crypto/AgileEngine.hxx:121 _Bool oox::core::AgileEngine::decryptHmacKey() include/oox/crypto/AgileEngine.hxx:122 @@ -176,8 +178,6 @@ include/test/sheet/xsheetannotation.hxx:36 class com::sun::star::uno::Reference apitest::XSheetAnnotation::getAnnotation(struct com::sun::star::table::CellAddress &) include/test/sheet/xspreadsheets2.hxx:40 class com::sun::star::uno::Reference apitest::XSpreadsheets2::getComponent() -include/test/sheet/xstyleloader.hxx:27 - class com::sun::star::uno::Reference apitest::XStyleLoader::getTargetComponent() include/test/sheet/xusedareacursor.hxx:22 class com::sun::star::uno::Reference apitest::XUsedAreaCursor::init() include/tools/color.hxx:151 @@ -188,7 +188,7 @@ include/tools/config.hxx:38 _Bool Config::ImplUpdateConfig() const include/tools/multisel.hxx:93 _Bool StringRangeEnumerator::insertRange(int,int,_Bool) -include/vcl/bitmap.hxx:172 +include/vcl/bitmap.hxx:171 _Bool Bitmap::Dither() include/vcl/bitmapex.hxx:241 _Bool BitmapEx::Rotate(long,const class Color &) @@ -204,13 +204,11 @@ include/vcl/menu.hxx:388 _Bool Menu::HandleMenuActivateEvent(class Menu *) const include/vcl/menu.hxx:389 _Bool Menu::HandleMenuDeActivateEvent(class Menu *) const -include/vcl/texteng.hxx:280 +include/vcl/texteng.hxx:275 _Bool TextEngine::Read(class SvStream &,const class TextSelection *) include/vcl/toolbox.hxx:513 _Bool ToolBox::ChangeHighlightUpDn(_Bool) -include/vcl/weld.hxx:397 - _Bool weld::ComboBox::get_entry_selection_bounds(int &,int &) -include/vcl/weld.hxx:1193 +include/vcl/weld.hxx:1219 _Bool weld::TextView::get_selection_bounds(int &,int &) lotuswordpro/inc/lwpsvstream.hxx:76 class LwpSvStream & LwpSvStream::ReadUInt8(unsigned char &) @@ -276,17 +274,19 @@ sd/source/ui/inc/OutlineViewShell.hxx:115 class ErrCode sd::OutlineViewShell::ReadRtf(class SvStream &) sd/source/ui/remotecontrol/IBluetoothSocket.hxx:37 int sd::IBluetoothSocket::write(const void *,unsigned int) +sw/inc/authfld.hxx:98 + unsigned short SwAuthorityFieldType::AppendField(const class SwAuthEntry &) sw/inc/calc.hxx:114 class SwSbxValue & SwSbxValue::MakeDouble() -sw/inc/doc.hxx:1070 +sw/inc/doc.hxx:1077 _Bool SwDoc::ReplaceNumRule(const struct SwPosition &,const class rtl::OUString &,const class rtl::OUString &) -sw/inc/doc.hxx:1231 +sw/inc/doc.hxx:1238 _Bool SwDoc::SetColRowWidthHeight(class SwTableBox &,enum TableChgWidthHeightType,long,long) -sw/inc/doc.hxx:1256 +sw/inc/doc.hxx:1263 _Bool SwDoc::SplitTable(const struct SwPosition &,enum SplitTable_HeadlineOption,_Bool) -sw/inc/editsh.hxx:264 +sw/inc/editsh.hxx:266 _Bool SwEditShell::GetPaMParAttr(class SwPaM *,class SfxItemSet &) const -sw/inc/editsh.hxx:636 +sw/inc/editsh.hxx:641 const class GraphicAttr * SwEditShell::GetGraphicAttr(class GraphicAttr &) const sw/inc/IDocumentUndoRedo.hxx:181 _Bool IDocumentUndoRedo::Repeat(class sw::RepeatContext &,const unsigned short) @@ -306,7 +306,7 @@ sw/source/uibase/inc/mailmergewizard.hxx:79 _Bool SwMailMergeWizard::skipUntil(unsigned short) ucb/source/ucp/webdav-neon/ContentProperties.hxx:169 _Bool webdav_ucp::CachableContentProperties::containsAllNames(const class com::sun::star::uno::Sequence &,class std::__debug::vector > &) const -ucb/source/ucp/webdav-neon/NeonSession.hxx:239 +ucb/source/ucp/webdav-neon/NeonSession.hxx:240 _Bool webdav_ucp::NeonSession::UNLOCK(struct ne_lock *) vcl/inc/font/FeatureCollector.hxx:48 _Bool vcl::font::FeatureCollector::collect() diff --git a/connectivity/source/drivers/mysqlc/mysqlc_general.cxx b/connectivity/source/drivers/mysqlc/mysqlc_general.cxx index ed1a71dd460d..75b97b4028de 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_general.cxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_general.cxx @@ -225,11 +225,6 @@ sal_Int32 mysqlStrToOOOType(const OUString& sType) return css::sdbc::DataType::VARCHAR; } -OUString mysqlTypeToStr(MYSQL_FIELD const* field) -{ - return mysqlTypeToStr(field->type, field->flags); -} - OUString mysqlTypeToStr(unsigned type, unsigned flags) { bool isUnsigned = (flags & UNSIGNED_FLAG) != 0; diff --git a/connectivity/source/drivers/mysqlc/mysqlc_general.hxx b/connectivity/source/drivers/mysqlc/mysqlc_general.hxx index 67dbd7342597..38852d269ae6 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_general.hxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_general.hxx @@ -105,8 +105,6 @@ void throwSQLExceptionWithMsg(const char* msg, unsigned int errorNum, sal_Int32 mysqlToOOOType(int eType, int charsetnr) noexcept; -OUString mysqlTypeToStr(MYSQL_FIELD const* pField); - OUString mysqlTypeToStr(unsigned mysql_type, unsigned mysql_flags); sal_Int32 mysqlStrToOOOType(const OUString& sType); diff --git a/sc/inc/autoform.hxx b/sc/inc/autoform.hxx index b1d22390573c..dee34508b2a9 100644 --- a/sc/inc/autoform.hxx +++ b/sc/inc/autoform.hxx @@ -330,7 +330,6 @@ public: const ScAutoFormatData* findByIndex(size_t nIndex) const; ScAutoFormatData* findByIndex(size_t nIndex); - iterator find(const ScAutoFormatData* pData); iterator find(const OUString& rName); iterator insert(std::unique_ptr pNew); diff --git a/sc/source/core/tool/autoform.cxx b/sc/source/core/tool/autoform.cxx index 03a17010e37b..3e4f6c33920a 100644 --- a/sc/source/core/tool/autoform.cxx +++ b/sc/source/core/tool/autoform.cxx @@ -969,17 +969,6 @@ ScAutoFormatData* ScAutoFormat::findByIndex(size_t nIndex) return it->second.get(); } -ScAutoFormat::iterator ScAutoFormat::find(const ScAutoFormatData* pData) -{ - MapType::iterator it = m_Data.begin(), itEnd = m_Data.end(); - for (; it != itEnd; ++it) - { - if (it->second.get() == pData) - return it; - } - return itEnd; -} - ScAutoFormat::iterator ScAutoFormat::find(const OUString& rName) { return m_Data.find(rName); diff --git a/sw/inc/authfld.hxx b/sw/inc/authfld.hxx index e03cc4252f1c..df836c5889e2 100644 --- a/sw/inc/authfld.hxx +++ b/sw/inc/authfld.hxx @@ -96,7 +96,6 @@ public: bool ChangeEntryContent(const SwAuthEntry* pNewEntry); // import interface sal_uInt16 AppendField(const SwAuthEntry& rInsert); - SwAuthEntry* GetFieldByPos(sal_uInt16 nPos); sal_uInt16 GetSequencePos(const SwAuthEntry* pAuthEntry, SwRootFrame const* pLayout); diff --git a/sw/source/core/fields/authfld.cxx b/sw/source/core/fields/authfld.cxx index 20d53944f65a..bf7ceb6df3ee 100644 --- a/sw/source/core/fields/authfld.cxx +++ b/sw/source/core/fields/authfld.cxx @@ -176,11 +176,6 @@ sal_uInt16 SwAuthorityFieldType::AppendField( const SwAuthEntry& rInsert ) return m_DataArr.size()-1; } -SwAuthEntry* SwAuthorityFieldType::GetFieldByPos(sal_uInt16 nPos) -{ - return m_DataArr[nPos].get(); -} - sal_uInt16 SwAuthorityFieldType::GetSequencePos(const SwAuthEntry* pAuthEntry, SwRootFrame const*const pLayout) { diff --git a/sw/source/uibase/inc/uitool.hxx b/sw/source/uibase/inc/uitool.hxx index 62fcb17514c9..66791ac0ffc9 100644 --- a/sw/source/uibase/inc/uitool.hxx +++ b/sw/source/uibase/inc/uitool.hxx @@ -89,7 +89,6 @@ void SetApplyCharUnit(bool bApplyChar, bool bWeb); SW_DLLPUBLIC void FillCharStyleListBox(weld::ComboBox& rToFill, SwDocShell* pDocSh, bool bSorted = false, bool bWithDefault = false); //inserts a string sorted into a ListBox, -SW_DLLPUBLIC sal_Int32 InsertStringSorted(const OUString& rEntry, ListBox& rToFill, sal_Int32 nOffset); SW_DLLPUBLIC void InsertStringSorted(const OUString& rId, const OUString& rEntry, weld::ComboBox& rToFill, int nOffset); // Get table width and alignment diff --git a/sw/source/uibase/utlui/uitool.cxx b/sw/source/uibase/utlui/uitool.cxx index c08f3e3a3c2d..a2a3ff3e6346 100644 --- a/sw/source/uibase/utlui/uitool.cxx +++ b/sw/source/uibase/utlui/uitool.cxx @@ -661,19 +661,6 @@ void SetDfltMetric( FieldUnit eMetric, bool bWeb ) SW_MOD()->ApplyUserMetric(eMetric, bWeb); } -sal_Int32 InsertStringSorted(const OUString& rEntry, ListBox& rToFill, sal_Int32 nOffset ) -{ - CollatorWrapper& rCaseColl = ::GetAppCaseCollator(); - const sal_Int32 nCount = rToFill.GetEntryCount(); - while (nOffset < nCount) - { - if( 0 < rCaseColl.compareString( rToFill.GetEntry(nOffset), rEntry )) - break; - ++nOffset; - } - return rToFill.InsertEntry(rEntry, nOffset); -} - void InsertStringSorted(const OUString& rId, const OUString& rEntry, weld::ComboBox& rToFill, int nOffset) { CollatorWrapper& rCaseColl = ::GetAppCaseCollator(); -- cgit