Skip to content

Commit 869b631

Browse files
committed
[qt] remove unused parameter from getWarnings()
1 parent a595011 commit 869b631

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/interfaces/node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class NodeImpl : public Node
6868
std::string getNetwork() override { return Params().NetworkIDString(); }
6969
void initLogging() override { InitLogging(); }
7070
void initParameterInteraction() override { InitParameterInteraction(); }
71-
std::string getWarnings(const std::string& type) override { return GetWarnings(type); }
71+
std::string getWarnings() override { return GetWarnings("gui"); }
7272
uint32_t getLogCategories() override { return LogInstance().GetCategoryMask(); }
7373
bool baseInitialize() override
7474
{

src/interfaces/node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class Node
7878
virtual void initParameterInteraction() = 0;
7979

8080
//! Get warnings.
81-
virtual std::string getWarnings(const std::string& type) = 0;
81+
virtual std::string getWarnings() = 0;
8282

8383
// Get log flags.
8484
virtual uint32_t getLogCategories() = 0;

src/qt/bitcoin.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ BitcoinCore::BitcoinCore(interfaces::Node& node) :
135135
void BitcoinCore::handleRunawayException(const std::exception *e)
136136
{
137137
PrintExceptionContinue(e, "Runaway exception");
138-
Q_EMIT runawayException(QString::fromStdString(m_node.getWarnings("gui")));
138+
Q_EMIT runawayException(QString::fromStdString(m_node.getWarnings()));
139139
}
140140

141141
void BitcoinCore::initialize()
@@ -589,10 +589,10 @@ int GuiMain(int argc, char* argv[])
589589
}
590590
} catch (const std::exception& e) {
591591
PrintExceptionContinue(&e, "Runaway exception");
592-
app.handleRunawayException(QString::fromStdString(node->getWarnings("gui")));
592+
app.handleRunawayException(QString::fromStdString(node->getWarnings()));
593593
} catch (...) {
594594
PrintExceptionContinue(nullptr, "Runaway exception");
595-
app.handleRunawayException(QString::fromStdString(node->getWarnings("gui")));
595+
app.handleRunawayException(QString::fromStdString(node->getWarnings()));
596596
}
597597
return rv;
598598
}

src/qt/clientmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ enum BlockSource ClientModel::getBlockSource() const
134134

135135
QString ClientModel::getStatusBarWarnings() const
136136
{
137-
return QString::fromStdString(m_node.getWarnings("gui"));
137+
return QString::fromStdString(m_node.getWarnings());
138138
}
139139

140140
OptionsModel *ClientModel::getOptionsModel()

0 commit comments

Comments
 (0)