mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-26 06:37:20 +02:00
I18N - Record
- Localized Record object. - Remove copy ctor, operator= from Duration - unnecessary.
This commit is contained in:
parent
36d4ecab43
commit
db52cf7327
5 changed files with 23 additions and 32 deletions
|
@ -37,31 +37,12 @@ Duration::Duration ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Duration::Duration (const Duration& other)
|
||||
{
|
||||
throw std::string ("unimplemented Duration::Duration");
|
||||
mDays = other.mDays;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Duration::Duration (const std::string& input)
|
||||
{
|
||||
parse (input);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Duration& Duration::operator= (const Duration& other)
|
||||
{
|
||||
throw std::string ("unimplemented Duration::operator=");
|
||||
if (this != &other)
|
||||
{
|
||||
mDays = other.mDays;
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Duration::operator int ()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue