// SPDX-FileCopyrightText: 2010 Brad Hards <bradh@frogmouth.net>
// SPDX-License-Identifier: LGPL-2.1-or-later

#include "InfoRevisedTimeDestination_p.h"

#include "AbstractRtfOutput.h"
#include "InfoTimeDestination_p.h"

#include <QString>

namespace QRtfReader
{
InfoRevisedTimeDestination::InfoRevisedTimeDestination(AbstractRtfOutput *output, const QString &name)
    : InfoTimeDestination(output, name)
{
}

InfoRevisedTimeDestination::~InfoRevisedTimeDestination() = default;

void InfoRevisedTimeDestination::aboutToEndDestination()
{
    m_output->setRevisedDateTime(dateTime());
}
}
