Skip to content

Commit

Permalink
FileDialog: Fix build with older gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt committed Sep 2, 2017
1 parent aa4aff6 commit 7b79075
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/gui/file_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@
#endif


namespace
{
constexpr int max_filter_length = 100;

} // namespace



bool FileDialog::needUpperCaseExtensions()
{
#if QTBUG_51712_QUIRK_ENABLED
Expand All @@ -71,7 +79,6 @@ void FileDialog::adjustParameters(QString& filter, QFileDialog::Options& options
using std::begin;
using std::end;

constexpr int max_filter_length = 100;
static const auto separator = QString::fromLatin1(";;");
#if QT_VERSION >= 0x50400
const auto filters = filter.splitRef(separator);
Expand Down

0 comments on commit 7b79075

Please sign in to comment.