Skip to content

Commit 7b79075

Browse files
committed
FileDialog: Fix build with older gcc
1 parent aa4aff6 commit 7b79075

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/gui/file_dialog.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@
4848
#endif
4949

5050

51+
namespace
52+
{
53+
constexpr int max_filter_length = 100;
54+
55+
} // namespace
56+
57+
58+
5159
bool FileDialog::needUpperCaseExtensions()
5260
{
5361
#if QTBUG_51712_QUIRK_ENABLED
@@ -71,7 +79,6 @@ void FileDialog::adjustParameters(QString& filter, QFileDialog::Options& options
7179
using std::begin;
7280
using std::end;
7381

74-
constexpr int max_filter_length = 100;
7582
static const auto separator = QString::fromLatin1(";;");
7683
#if QT_VERSION >= 0x50400
7784
const auto filters = filter.splitRef(separator);

0 commit comments

Comments
 (0)