kde-apps/kmail: Fix building in C++ 2011 and 2014 mode
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Sat, 3 Jun 2017 19:57:52 +0000 (21:57 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 3 Jun 2017 21:26:25 +0000 (23:26 +0200)
kde-apps/kmail/files/kmail-4.4.2017.04-gcc6.patch [new file with mode: 0644]
kde-apps/kmail/kmail-4.4.2017.04.ebuild

diff --git a/kde-apps/kmail/files/kmail-4.4.2017.04-gcc6.patch b/kde-apps/kmail/files/kmail-4.4.2017.04-gcc6.patch
new file mode 100644 (file)
index 0000000..e4a891b
--- /dev/null
@@ -0,0 +1,42 @@
+--- a/kmail/folderview.cpp
++++ b/kmail/folderview.cpp
+@@ -1907,7 +1907,7 @@
+            KGuiItem( i18n( "Go To" ) ),
+            KGuiItem( i18n( "Do Not Go To" ) ), // defaults
+            ":kmail_AskNextFolder",
+-           false
++           0
+          ) == KMessageBox::No
+      )
+     return true; // assume selected (do not continue looping)
+--- a/kmail/kmmainwidget.cpp
++++ b/kmail/kmmainwidget.cpp
+@@ -1588,7 +1588,7 @@
+       i18n( "Security Warning" ),
+       KGuiItem(i18n( "Use HTML" )),
+       KStandardGuiItem::cancel(),
+-      "OverrideHtmlWarning", false);
++      "OverrideHtmlWarning", 0);
+     if( result == KMessageBox::Cancel ) {
+       mPreferHtmlAction->setChecked( false );
+       return;
+@@ -1617,7 +1617,7 @@
+       i18n( "Security Warning" ),
+       KGuiItem(i18n( "Load External References" )),
+       KStandardGuiItem::cancel(),
+-      "OverrideHtmlLoadExtWarning", false);
++      "OverrideHtmlLoadExtWarning", 0);
+     if( result == KMessageBox::Cancel ) {
+       mPreferHtmlLoadExtAction->setChecked( false );
+       return;
+--- a/kmail/kmsender.cpp
++++ b/kmail/kmsender.cpp
+@@ -575,7 +575,7 @@
+         i18n( "Security Warning" ),
+         KGuiItem( i18n( "Send Unencrypted" ) ),
+         KStandardGuiItem::cancel(),
+-        "useCustomTransportWithoutAsking", false );
++        "useCustomTransportWithoutAsking", 0 );
+       if ( result == KMessageBox::Cancel ) {
+         mProgressItem->cancel();
index 30728aaf34ba7483f161b81274d3f3a2b6e47d5b..00c3717ccfd8d80dec1c032ddaae170c27016af4 100644 (file)
@@ -41,6 +41,8 @@ KMEXTRA="
 "
 KMLOADLIBS="libkdepim"
 
+PATCHES=( "${FILESDIR}/${P}-gcc6.patch" )
+
 src_configure() {
        mycmakeargs=(
                -DWITH_IndicateQt=OFF