Changed variable to prevent shadowing.

This commit is contained in:
tastytea 2019-05-25 16:06:16 +02:00
parent 636509fa2d
commit 8cd33bb083
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 2 deletions

View File

@ -142,14 +142,14 @@ void export_adoc(const vector<Database::entry> &entries, ostream &out)
for (const Database::entry &entry : tag.second)
{
const string datetime = timepoint_to_string(entry.datetime);
const string day = datetime.substr(0, datetime.find('T'));
const string date = datetime.substr(0, datetime.find('T'));
string title = entry.title;
if (title.empty())
{
title = "++" + entry.uri + "++";
}
out << endl << "* xref:dt_" << datetime
<< '[' << title << "] _(" << day << ")_" << endl;
<< '[' << title << "] _(" << date << ")_" << endl;
}
out << endl;
}