Minor Refactoring
- Added support for more type-specific checks of attribute values. - Added support for more type-specific attribute rendering. - Improved generalized methods for checking columns in a report. - Added unit tests. - Minor code cleanup. - Added secret hidden feature for internal testing.
This commit is contained in:
@@ -25,7 +25,6 @@
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#define L10N // Localization complete.
|
||||
|
||||
#include <sstream>
|
||||
@@ -401,6 +400,13 @@ void Duration::parse (const std::string& input)
|
||||
else
|
||||
_negative = false;
|
||||
|
||||
// If no units are provided, assume seconds.
|
||||
if (n.depleted ())
|
||||
{
|
||||
_secs = (long) value;
|
||||
return;
|
||||
}
|
||||
|
||||
std::string units;
|
||||
n.getUntilEOS (units);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user