fixed mac os clang warnings

This commit is contained in:
Jean-Francois Dockes
2021-04-01 09:22:17 -07:00
parent db659c4d81
commit a3b1b48450
8 changed files with 66 additions and 73 deletions
+11 -11
View File
@@ -133,18 +133,18 @@ public:
QtGuiResListPager(ResList *p, int ps, bool alwayssnip)
: ResListPager(ps, alwayssnip), m_reslist(p)
{}
virtual bool append(const string& data);
virtual bool append(const string& data, int idx, const Rcl::Doc& doc);
virtual string trans(const string& in);
virtual string detailsLink();
virtual const string &parFormat();
virtual const string &dateFormat();
virtual string nextUrl();
virtual string prevUrl();
virtual string headerContent();
virtual bool append(const string& data) override;
virtual bool append(const string& data, int idx, const Rcl::Doc& doc) override;
virtual string trans(const string& in) override;
virtual string detailsLink() override;
virtual const string &parFormat() override;
virtual const string &dateFormat() override;
virtual string nextUrl() override;
virtual string prevUrl() override;
virtual string headerContent() override;
virtual void suggest(const vector<string>uterms,
map<string, vector<string> >& sugg);
virtual string absSep() {return (const char *)(prefs.abssep.toUtf8());}
map<string, vector<string> >& sugg) override;
virtual string absSep() override {return (const char *)(prefs.abssep.toUtf8());}
#if defined(USING_WEBENGINE) || defined(USING_WEBKIT)
// We used to use http://localhost/. Now use file:/// as this is
+1 -1
View File
@@ -247,7 +247,7 @@ void SSearch::onCompleterShown()
}
// Test if the completer text begins with the current input.
QString text = data.toString();
if (!text.lastIndexOf(queryText->text()) == 0) {
if (text.lastIndexOf(queryText->text()) != 0) {
return;
}
+1 -1
View File
@@ -470,7 +470,7 @@
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="label">
<property name="toolTip">
+2 -2
View File
@@ -223,7 +223,7 @@ public:
}
void startElement(const std::string &nm,
const std::map<std::string, std::string>& attrs) {
const std::map<std::string, std::string>& attrs) override {
LOGDEB2("SSHXMLHandler::startElement: name [" << nm << "]\n");
if (nm == "SD") {
// Simple search saved data has a type='ssearch' attribute.
@@ -277,7 +277,7 @@ public:
return ;
}
void characterData(const std::string &str) {
void characterData(const std::string &str) override {
currentText += str;
}