mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Code Cleanup
- Guaranteed the correct Config::get call via cast. There is some doubt as to the correct call being made otherwise. This is not a very likely fix, but does eliminate one possibility.
This commit is contained in:
parent
41b60f88d3
commit
7e2bd166fa
3 changed files with 10 additions and 10 deletions
|
@ -283,7 +283,7 @@ std::string handleVersion (Config& conf)
|
|||
std::stringstream out;
|
||||
|
||||
// Determine window size, and set table accordingly.
|
||||
int width = conf.get ("defaultwidth", 80);
|
||||
int width = conf.get ("defaultwidth", (int) 80);
|
||||
#ifdef HAVE_LIBNCURSES
|
||||
if (conf.get ("curses", true))
|
||||
{
|
||||
|
|
|
@ -147,7 +147,7 @@ std::string handleCompleted (TDB& tdb, T& task, Config& conf)
|
|||
std::stringstream out;
|
||||
|
||||
// Determine window size, and set table accordingly.
|
||||
int width = conf.get ("defaultwidth", 80);
|
||||
int width = conf.get ("defaultwidth", (int) 80);
|
||||
#ifdef HAVE_LIBNCURSES
|
||||
if (conf.get ("curses", true))
|
||||
{
|
||||
|
@ -251,7 +251,7 @@ std::string handleInfo (TDB& tdb, T& task, Config& conf)
|
|||
std::stringstream out;
|
||||
|
||||
// Determine window size, and set table accordingly.
|
||||
int width = conf.get ("defaultwidth", 80);
|
||||
int width = conf.get ("defaultwidth", (int) 80);
|
||||
#ifdef HAVE_LIBNCURSES
|
||||
if (conf.get ("curses", true))
|
||||
{
|
||||
|
@ -634,7 +634,7 @@ std::string handleReportNext (TDB& tdb, T& task, Config& conf)
|
|||
gatherNextTasks (tdb, task, conf, pending, matching);
|
||||
|
||||
// Determine window size, and set table accordingly.
|
||||
int width = conf.get ("defaultwidth", 80);
|
||||
int width = conf.get ("defaultwidth", (int) 80);
|
||||
#ifdef HAVE_LIBNCURSES
|
||||
if (conf.get ("curses", true))
|
||||
{
|
||||
|
@ -1001,7 +1001,7 @@ std::string handleReportGHistory (TDB& tdb, T& task, Config& conf)
|
|||
std::stringstream out;
|
||||
|
||||
// Determine window size, and set table accordingly.
|
||||
int width = conf.get ("defaultwidth", 80);
|
||||
int width = conf.get ("defaultwidth", (int) 80);
|
||||
#ifdef HAVE_LIBNCURSES
|
||||
if (conf.get ("curses", true))
|
||||
{
|
||||
|
@ -1364,7 +1364,7 @@ std::string handleReportCalendar (TDB& tdb, T& task, Config& conf)
|
|||
std::stringstream out;
|
||||
|
||||
// Determine window size, and set table accordingly.
|
||||
int width = conf.get ("defaultwidth", 80);
|
||||
int width = conf.get ("defaultwidth", (int) 80);
|
||||
#ifdef HAVE_LIBNCURSES
|
||||
if (conf.get ("curses", true))
|
||||
{
|
||||
|
@ -1473,7 +1473,7 @@ std::string handleReportActive (TDB& tdb, T& task, Config& conf)
|
|||
std::stringstream out;
|
||||
|
||||
// Determine window size, and set table accordingly.
|
||||
int width = conf.get ("defaultwidth", 80);
|
||||
int width = conf.get ("defaultwidth", (int) 80);
|
||||
#ifdef HAVE_LIBNCURSES
|
||||
if (conf.get ("curses", true))
|
||||
{
|
||||
|
@ -1606,7 +1606,7 @@ std::string handleReportOverdue (TDB& tdb, T& task, Config& conf)
|
|||
std::stringstream out;
|
||||
|
||||
// Determine window size, and set table accordingly.
|
||||
int width = conf.get ("defaultwidth", 80);
|
||||
int width = conf.get ("defaultwidth", (int) 80);
|
||||
#ifdef HAVE_LIBNCURSES
|
||||
if (conf.get ("curses", true))
|
||||
{
|
||||
|
@ -2024,7 +2024,7 @@ std::string handleCustomReport (
|
|||
const std::string& report)
|
||||
{
|
||||
// Determine window size, and set table accordingly.
|
||||
int width = conf.get ("defaultwidth", 80);
|
||||
int width = conf.get ("defaultwidth", (int) 80);
|
||||
#ifdef HAVE_LIBNCURSES
|
||||
if (conf.get ("curses", true))
|
||||
{
|
||||
|
|
|
@ -52,7 +52,7 @@ static std::string shortUsage (Config& conf)
|
|||
{
|
||||
std::stringstream out;
|
||||
Table table;
|
||||
int width = conf.get ("defaultwidth", 80);
|
||||
int width = conf.get ("defaultwidth", (int) 80);
|
||||
#ifdef HAVE_LIBNCURSES
|
||||
if (conf.get ("curses", true))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue