Resolve a number of minor warnings (#3495)
This commit is contained in:
@@ -177,7 +177,6 @@ int CmdCalendar::execute (std::string& output)
|
|||||||
yFrom = argYear;
|
yFrom = argYear;
|
||||||
|
|
||||||
// Now begin the data subset and rendering.
|
// Now begin the data subset and rendering.
|
||||||
auto countDueDates = 0;
|
|
||||||
if (getPendingDate == true)
|
if (getPendingDate == true)
|
||||||
{
|
{
|
||||||
// Find the oldest pending due date.
|
// Find the oldest pending due date.
|
||||||
@@ -190,7 +189,6 @@ int CmdCalendar::execute (std::string& output)
|
|||||||
if (task.has ("due") &&
|
if (task.has ("due") &&
|
||||||
!task.hasTag ("nocal"))
|
!task.hasTag ("nocal"))
|
||||||
{
|
{
|
||||||
++countDueDates;
|
|
||||||
Datetime d (task.get ("due"));
|
Datetime d (task.get ("due"));
|
||||||
if (d < oldest) oldest = d;
|
if (d < oldest) oldest = d;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class CmdCustom : public Command
|
|||||||
public:
|
public:
|
||||||
CmdCustom (const std::string&, const std::string&, const std::string&);
|
CmdCustom (const std::string&, const std::string&, const std::string&);
|
||||||
bool uses_context () const override;
|
bool uses_context () const override;
|
||||||
int execute (std::string&);
|
int execute (std::string&) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void validateReportColumns (std::vector <std::string>&);
|
void validateReportColumns (std::vector <std::string>&);
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class CmdTimesheet : public Command
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CmdTimesheet ();
|
CmdTimesheet ();
|
||||||
int execute (std::string&);
|
int execute (std::string&) override;
|
||||||
bool uses_context () const override;
|
bool uses_context () const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user