mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
planner: use std::string in plannernotes.cpp
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
8b51ff7ded
commit
4db19d6284
5 changed files with 120 additions and 129 deletions
|
@ -1025,14 +1025,14 @@ QString get_last_dive_date_string()
|
|||
return dives->nr > 0 ? get_dive_only_date_string(dives->dives[dives->nr - 1]->when) : gettextFromC::tr("no dives");
|
||||
}
|
||||
|
||||
extern "C" char *get_current_date()
|
||||
std::string get_current_date()
|
||||
{
|
||||
QDateTime ts(QDateTime::currentDateTime());;
|
||||
QString current_date;
|
||||
|
||||
current_date = loc.toString(ts, QString(prefs.date_format_short));
|
||||
|
||||
return copy_qstring(current_date);
|
||||
return current_date.toStdString();
|
||||
}
|
||||
|
||||
static QMutex hashOfMutex;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue