nextcloud-desktop/src/libsync/datetimeprovider.h
Matthieu Gallien 565a5f0999 add [[nodiscard]] attribute via clang-tidy
ran
run-clang-tidy-14.py -header-filter='.*' -checks='-*,modernize-use-nodiscard' -fix
under linux with most part of our code covered

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2022-10-04 11:14:45 +02:00

18 lines
286 B
C++

#pragma once
#include "owncloudlib.h"
#include <QDateTime>
namespace OCC {
class OWNCLOUDSYNC_EXPORT DateTimeProvider
{
public:
virtual ~DateTimeProvider();
[[nodiscard]] virtual QDateTime currentDateTime() const;
[[nodiscard]] virtual QDate currentDate() const;
};
}