diff options
author | tobik <tobik@FreeBSD.org> | 2018-08-01 21:25:48 +0800 |
---|---|---|
committer | tobik <tobik@FreeBSD.org> | 2018-08-01 21:25:48 +0800 |
commit | 50d8bc37d05ecbf142d8bdfe7b67e010c06d7edc (patch) | |
tree | 5639daa117d11d935c46259aac27256aced509d0 /sysutils/abgx360gui | |
parent | e34f411fc41d26d5f3c094eae91da3a2c2a09a25 (diff) | |
download | freebsd-ports-gnome-50d8bc37d05ecbf142d8bdfe7b67e010c06d7edc.tar.gz freebsd-ports-gnome-50d8bc37d05ecbf142d8bdfe7b67e010c06d7edc.tar.zst freebsd-ports-gnome-50d8bc37d05ecbf142d8bdfe7b67e010c06d7edc.zip |
sysutils/abgx360gui: Fix build with Clang 6
src/abgx360gui.cpp:2459:66: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
str = wxT("Your StealthFiles folder is located here:"NEWLINE);
^
beefy12.nyi.freebsd.org/data/head-amd64-default/p475964_s336959/logs/errors/abgx360gui-1.0.2_7.log
Diffstat (limited to 'sysutils/abgx360gui')
-rw-r--r-- | sysutils/abgx360gui/files/patch-src_abgx360gui.cpp | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sysutils/abgx360gui/files/patch-src_abgx360gui.cpp b/sysutils/abgx360gui/files/patch-src_abgx360gui.cpp new file mode 100644 index 000000000000..5ce69dd68aed --- /dev/null +++ b/sysutils/abgx360gui/files/patch-src_abgx360gui.cpp @@ -0,0 +1,51 @@ +src/abgx360gui.cpp:2459:66: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] + str = wxT("Your StealthFiles folder is located here:"NEWLINE); + ^ + +--- src/abgx360gui.cpp.orig 2018-08-01 13:21:47 UTC ++++ src/abgx360gui.cpp +@@ -1007,7 +1007,7 @@ void abgx360gui::OnClose(wxCloseEvent& WXUNUSED(event) + void abgx360gui::MnuSaveSettingsClick(wxCommandEvent& WXUNUSED(event)) + { + wxString name = wxT("/Settings/"); +- name += wxGetTextFromUser(wxT("Enter a name for these settings. Saving them as \"Default\" will"NEWLINE"cause them to be loaded every time abgx360 GUI is launched."), wxT("Save Settings"), wxT("Default")); ++ name += wxGetTextFromUser(wxT("Enter a name for these settings. Saving them as \"Default\" will" NEWLINE "cause them to be loaded every time abgx360 GUI is launched."), wxT("Save Settings"), wxT("Default")); + + if (name.Cmp(wxT("/Settings/")) == 0) return; + +@@ -1908,7 +1908,7 @@ void abgx360gui::OpenButtonClick(wxCommandEvent& WXUNU + //m_fileHistory->AddFileToHistory(openfilename); + count = arrayStringFor_OpenFileDialog.GetCount(); + if (count > 100) { +- wxMessageBox(wxT("You have selected over 100 files!"NEWLINE"This will probably exceed maximum command line length limits so try using directory input instead."), wxT("Doh!"), wxICON_EXCLAMATION); ++ wxMessageBox(wxT("You have selected over 100 files!" NEWLINE "This will probably exceed maximum command line length limits so try using directory input instead."), wxT("Doh!"), wxICON_EXCLAMATION); + return; + } + if (count) { +@@ -2456,7 +2456,7 @@ void abgx360gui::WhereStealthFilesClick(wxCommandEvent + homedir += wxT("\\abgx360\\"); + #else + if (wxGetEnv(wxT("ABGX360_DIR"), &homedir) || wxGetEnv(wxT("HOME"), &homedir)) { +- str = wxT("Your StealthFiles folder is located here:"NEWLINE); ++ str = wxT("Your StealthFiles folder is located here:" NEWLINE); + } + else { + wxMessageBox(wxT("ERROR: Unable to find your StealthFiles folder!"), wxT("Where is my StealthFiles folder?"), wxOK); +@@ -2503,7 +2503,7 @@ void abgx360gui::WhereImagesClick(wxCommandEvent& even + homedir += wxT("\\abgx360\\"); + #else + if (wxGetEnv(wxT("ABGX360_DIR"), &homedir) || wxGetEnv(wxT("HOME"), &homedir)) { +- str = wxT("Your Images folder is located here:"NEWLINE); ++ str = wxT("Your Images folder is located here:" NEWLINE); + } + else { + wxMessageBox(wxT("ERROR: Unable to find your Images folder!"), wxT("Where is my Images folder?"), wxOK); +@@ -2567,7 +2567,7 @@ bool DnDInput::OnDropFiles(wxCoord, wxCoord, const wxA + if (realcount) { + dndeditbox->AppendText(wxT(" ")); + if (realcount >= 100) { +- wxMessageBox(wxT("You have selected over 100 files!"NEWLINE"This will probably exceed maximum command line length limits so try using directory input instead."), wxT("Doh!"), wxICON_EXCLAMATION); ++ wxMessageBox(wxT("You have selected over 100 files!" NEWLINE "This will probably exceed maximum command line length limits so try using directory input instead."), wxT("Doh!"), wxICON_EXCLAMATION); + dndeditbox->Clear(); + return false; + } |