From c05d62f94f38101adff4780b84cccbe7c8e915d2 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 15 May 2022 20:50:56 +0100 Subject: [PATCH] Put private IFileDialog helpers into an anonymous namespace Don't use extern linkage for these private helpers. No real changes. --- src/msw/dirdlg.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/msw/dirdlg.cpp b/src/msw/dirdlg.cpp index 959c3be1d1..caa26cc32d 100644 --- a/src/msw/dirdlg.cpp +++ b/src/msw/dirdlg.cpp @@ -88,6 +88,9 @@ wxIMPLEMENT_CLASS(wxDirDialog, wxDialog); #if wxUSE_IFILEOPENDIALOG +namespace +{ + // helper functions for wxDirDialog::ShowIFileOpenDialog() bool InitIFileOpenDialog(const wxString& message, const wxString& defaultPath, int options, @@ -96,6 +99,8 @@ bool GetPathsFromIFileOpenDialog(const wxCOMPtr& fileDialog, bo wxArrayString& paths); bool ConvertIShellItemToPath(const wxCOMPtr& item, wxString& path); +} // anonymous namespace + #endif // #if wxUSE_IFILEOPENDIALOG // callback used in wxDirDialog::ShowSHBrowseForFolder() @@ -302,6 +307,9 @@ int wxDirDialog::ShowIFileOpenDialog(WXHWND owner) // private functions // ---------------------------------------------------------------------------- +namespace +{ + // helper function for wxDirDialog::ShowIFileOpenDialog() bool InitIFileOpenDialog(const wxString& message, const wxString& defaultPath, int options, @@ -475,6 +483,8 @@ bool ConvertIShellItemToPath(const wxCOMPtr& item, wxString& path) return true; } +} // anonymous namespace + #endif // wxUSE_IFILEOPENDIALOG // callback used in wxDirDialog::ShowSHBrowseForFolder()