From 8cd33bb0834b24940eb75ccbd5097d4973b3737d Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 25 May 2019 16:06:16 +0200 Subject: [PATCH] Changed variable to prevent shadowing. --- src/adoc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adoc.cpp b/src/adoc.cpp index ce0a1f0..fcf6a01 100644 --- a/src/adoc.cpp +++ b/src/adoc.cpp @@ -142,14 +142,14 @@ void export_adoc(const vector &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; }