From 58a43e284f2473d4cf61c268662eec42a98a815d Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Wed, 31 Mar 2021 20:55:06 +0300 Subject: [PATCH] Fix FileDialog namespace on Windows --- .../platform/win/file_utilities_win.h | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/Telegram/SourceFiles/platform/win/file_utilities_win.h b/Telegram/SourceFiles/platform/win/file_utilities_win.h index 43e23a955..19f2fe6f8 100644 --- a/Telegram/SourceFiles/platform/win/file_utilities_win.h +++ b/Telegram/SourceFiles/platform/win/file_utilities_win.h @@ -12,15 +12,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL namespace Platform { namespace File { -enum class ImplementationType { - Default, - Count, -}; - -inline QString ImplementationTypeLabel(ImplementationType value) { - Unexpected("Value in Platform::FileDialog::TypeLabel."); -} - inline QString UrlToLocal(const QUrl &url) { return ::File::internal::UrlToLocalDefault(url); } @@ -30,4 +21,17 @@ inline void UnsafeOpenUrl(const QString &url) { } } // namespace File + +namespace FileDialog { + +enum class ImplementationType { + Default, + Count, +}; + +inline QString ImplementationTypeLabel(ImplementationType value) { + Unexpected("Value in Platform::FileDialog::TypeLabel."); +} + +} // namespace FileDialog } // namespace Platform