Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:Update
kile5
0018-no-need-to-declare-void-functions-with-no-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0018-no-need-to-declare-void-functions-with-no-parameters.patch of Package kile5
From 1c9e6ff642b7c0ac479971ad1110ac953a05e6f8 Mon Sep 17 00:00:00 2001 From: Pino Toscano <pino@kde.org> Date: Sun, 28 Oct 2018 17:58:40 +0100 Subject: [PATCH 18/35] no need to declare "void" functions with no parameters it is a C-ism, never needed in C++ --- src/documentinfo.cpp | 2 +- src/editorextension.cpp | 2 +- src/kileviewmanager.cpp | 4 ++-- src/kileviewmanager.h | 6 +++--- src/plaintolatexconverter.cpp | 4 ++-- src/plaintolatexconverter.h | 4 ++-- src/widgets/codecompletionconfigwidget.cpp | 4 ++-- src/widgets/codecompletionconfigwidget.h | 4 ++-- src/widgets/previewconfigwidget.cpp | 4 ++-- src/widgets/previewconfigwidget.h | 4 ++-- 10 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/documentinfo.cpp b/src/documentinfo.cpp index cbf46750..167d8afc 100644 --- a/src/documentinfo.cpp +++ b/src/documentinfo.cpp @@ -193,7 +193,7 @@ Info::Info() : updateStructLevelInfo(); } -Info::~Info(void) +Info::~Info() { KILE_DEBUG_MAIN << "DELETING DOCINFO" << this; } diff --git a/src/editorextension.cpp b/src/editorextension.cpp index 07449585..9a0a1b9d 100644 --- a/src/editorextension.cpp +++ b/src/editorextension.cpp @@ -89,7 +89,7 @@ EditorExtension::~EditorExtension() //////////////////// read configuration //////////////////// -void EditorExtension::readConfig(void) +void EditorExtension::readConfig() { // init insertion of double quotes initDoubleQuotes(); diff --git a/src/kileviewmanager.cpp b/src/kileviewmanager.cpp index 3bc35fd0..74e52506 100644 --- a/src/kileviewmanager.cpp +++ b/src/kileviewmanager.cpp @@ -855,7 +855,7 @@ void Manager::onTextEditorPopupMenuRequest() } } -void Manager::convertSelectionToLaTeX(void) +void Manager::convertSelectionToLaTeX() { KTextEditor::View *view = currentTextView(); @@ -922,7 +922,7 @@ void Manager::convertSelectionToLaTeX(void) /** * Pastes the clipboard's contents as LaTeX (ie. % -> \%, etc.). */ -void Manager::pasteAsLaTeX(void) +void Manager::pasteAsLaTeX() { KTextEditor::View *view = currentTextView(); diff --git a/src/kileviewmanager.h b/src/kileviewmanager.h index 4665e524..6fe0898f 100644 --- a/src/kileviewmanager.h +++ b/src/kileviewmanager.h @@ -168,8 +168,8 @@ public Q_SLOTS: bool, KTextEditor::ModificationInterface::ModifiedOnDiskReason reason); - void convertSelectionToLaTeX(void); - void pasteAsLaTeX(void); + void convertSelectionToLaTeX(); + void pasteAsLaTeX(); void quickPreviewPopup(); void moveTabLeft(QWidget *widget = Q_NULLPTR); @@ -203,7 +203,7 @@ protected Q_SLOTS: void testCanDecodeURLs(const QDragEnterEvent *e, bool &accept); void testCanDecodeURLs(const QDragMoveEvent *e, bool &accept); void replaceLoadedURL(QWidget *w, QDropEvent *e); - void onTextEditorPopupMenuRequest(void); + void onTextEditorPopupMenuRequest(); /** * Updates the labels of every tab that contains a view for 'changedDoc' to reflect there diff --git a/src/plaintolatexconverter.cpp b/src/plaintolatexconverter.cpp index abc14d4a..07833d78 100644 --- a/src/plaintolatexconverter.cpp +++ b/src/plaintolatexconverter.cpp @@ -19,7 +19,7 @@ #include "plaintolatexconverter.h" -PlainToLaTeXConverter::PlainToLaTeXConverter(void) +PlainToLaTeXConverter::PlainToLaTeXConverter() { // Fill the replacement map //TODO Do it only once! @@ -34,7 +34,7 @@ PlainToLaTeXConverter::PlainToLaTeXConverter(void) m_replaceMap.insert('~', "$\\sim$"); } -PlainToLaTeXConverter::~PlainToLaTeXConverter(void) {} +PlainToLaTeXConverter::~PlainToLaTeXConverter() {} /** * Converts plain text to LaTeX. diff --git a/src/plaintolatexconverter.h b/src/plaintolatexconverter.h index 77aad8e9..0201565a 100644 --- a/src/plaintolatexconverter.h +++ b/src/plaintolatexconverter.h @@ -30,8 +30,8 @@ class PlainToLaTeXConverter { public: - PlainToLaTeXConverter(void); - ~PlainToLaTeXConverter(void); + PlainToLaTeXConverter(); + ~PlainToLaTeXConverter(); QString ConvertToLaTeX(const QString&) const; diff --git a/src/widgets/codecompletionconfigwidget.cpp b/src/widgets/codecompletionconfigwidget.cpp index bd642e13..4233bf56 100644 --- a/src/widgets/codecompletionconfigwidget.cpp +++ b/src/widgets/codecompletionconfigwidget.cpp @@ -116,7 +116,7 @@ void CodeCompletionConfigWidget::addPage(QTabWidget *tab, CompletionPage page, c //////////////////// read/write configuration //////////////////// -void CodeCompletionConfigWidget::readConfig(void) +void CodeCompletionConfigWidget::readConfig() { // read selected and deselected filenames with wordlists m_wordlist[TexPage] = KileConfig::completeTex(); @@ -141,7 +141,7 @@ void CodeCompletionConfigWidget::readConfig(void) } } -void CodeCompletionConfigWidget::writeConfig(void) +void CodeCompletionConfigWidget::writeConfig() { // get listview entries for (uint i = TexPage; i < NumPages; ++i) { diff --git a/src/widgets/codecompletionconfigwidget.h b/src/widgets/codecompletionconfigwidget.h index 4f8ca1c1..cba7fded 100644 --- a/src/widgets/codecompletionconfigwidget.h +++ b/src/widgets/codecompletionconfigwidget.h @@ -40,8 +40,8 @@ public: CodeCompletionConfigWidget(KConfig *config, KileErrorHandler *errorHandler, QWidget *parent = Q_NULLPTR, const char *name = Q_NULLPTR); ~CodeCompletionConfigWidget(); - void readConfig(void); - void writeConfig(void); + void readConfig(); + void writeConfig(); private: enum CompletionPage { TexPage = 0, DictionaryPage = 1, AbbreviationPage = 2, NumPages = 3 }; diff --git a/src/widgets/previewconfigwidget.cpp b/src/widgets/previewconfigwidget.cpp index d60bedf3..e6ac9290 100644 --- a/src/widgets/previewconfigwidget.cpp +++ b/src/widgets/previewconfigwidget.cpp @@ -169,7 +169,7 @@ KileWidgetPreviewConfig::KileWidgetPreviewConfig(KConfig *config, KileTool::Quic //////////////////// read/write configuration //////////////////// -void KileWidgetPreviewConfig::readConfig(void) +void KileWidgetPreviewConfig::readConfig() { setupSeparateWindow(); setupBottomBar(); @@ -178,7 +178,7 @@ void KileWidgetPreviewConfig::readConfig(void) updateConversionTools(); } -void KileWidgetPreviewConfig::writeConfig(void) +void KileWidgetPreviewConfig::writeConfig() { KileConfig::setPreviewTask(m_combobox->currentText()); diff --git a/src/widgets/previewconfigwidget.h b/src/widgets/previewconfigwidget.h index 749ab650..05e8a9e4 100644 --- a/src/widgets/previewconfigwidget.h +++ b/src/widgets/previewconfigwidget.h @@ -38,8 +38,8 @@ public: KileWidgetPreviewConfig(KConfig *config, KileTool::QuickPreview *preview, QWidget *parent = 0, const char *name = 0); ~KileWidgetPreviewConfig() {} - void readConfig(void); - void writeConfig(void); + void readConfig(); + void writeConfig(); private: KConfig *m_config; -- 2.20.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor