pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/mp3diags operator bool for streams is explicit i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cde2e05ee348
branches:  trunk
changeset: 363832:cde2e05ee348
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Jun 17 19:36:06 2017 +0000

description:
operator bool for streams is explicit in C++11, so request it where
necessary.

diffstat:

 audio/mp3diags/distinfo                              |   4 ++-
 audio/mp3diags/patches/patch-src_ExportDlgImpl.cpp   |  30 ++++++++++++++++++++
 audio/mp3diags/patches/patch-src_MainFormDlgImpl.cpp |  22 ++++++++++++++
 3 files changed, 55 insertions(+), 1 deletions(-)

diffs (74 lines):

diff -r 567dab10a549 -r cde2e05ee348 audio/mp3diags/distinfo
--- a/audio/mp3diags/distinfo   Sat Jun 17 19:34:21 2017 +0000
+++ b/audio/mp3diags/distinfo   Sat Jun 17 19:36:06 2017 +0000
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.19 2015/12/28 21:16:32 adam Exp $
+$NetBSD: distinfo,v 1.20 2017/06/17 19:36:06 joerg Exp $
 
 SHA1 (MP3Diags-1.2.02.tar.gz) = 92b102713ac767ed45476c684f68f0d300fc8354
 RMD160 (MP3Diags-1.2.02.tar.gz) = 85b8da63c135e88fcd54bf094fcad1562795ecb2
 SHA512 (MP3Diags-1.2.02.tar.gz) = 51498646ad3c9a19aeb0bcbf8cd280de75a24eb252790cc71d1eba433b986bbc58d4198d8bdfc0339dd6845ddfd966dd482f991b976e2da8f49e9d4e4f0464d0
 Size (MP3Diags-1.2.02.tar.gz) = 1220039 bytes
 SHA1 (patch-aa) = 4aae1922ca2b7fa9dbb30f1b5ceabb773a56c55f
+SHA1 (patch-src_ExportDlgImpl.cpp) = 8a950c36fddd26af7af407029ec74efac3a928f2
+SHA1 (patch-src_MainFormDlgImpl.cpp) = 9a4b223f5f9fa70db013fd25c6c06b3afefe1f6b
diff -r 567dab10a549 -r cde2e05ee348 audio/mp3diags/patches/patch-src_ExportDlgImpl.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/mp3diags/patches/patch-src_ExportDlgImpl.cpp        Sat Jun 17 19:36:06 2017 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-src_ExportDlgImpl.cpp,v 1.1 2017/06/17 19:36:06 joerg Exp $
+
+--- src/ExportDlgImpl.cpp.orig 2017-06-10 16:00:59.141430187 +0000
++++ src/ExportDlgImpl.cpp
+@@ -371,7 +371,7 @@ bool ExportDlgImpl::exportAsText(const s
+         out << "\n\n";
+     }
+ 
+-    return out;
++    return bool(out);
+ }
+ 
+ 
+@@ -424,7 +424,7 @@ bool ExportDlgImpl::exportAsM3u(const st
+         out << pCodec->fromUnicode(qs).constData() << endl;
+     }
+ 
+-    return out;
++    return bool(out);
+ }
+ 
+ 
+@@ -761,6 +761,6 @@ bool ExportDlgImpl::exportAsXml(const st
+ 
+     out << "</files>\n";
+ 
+-    return out;
++    return bool(out);
+ }
+ 
diff -r 567dab10a549 -r cde2e05ee348 audio/mp3diags/patches/patch-src_MainFormDlgImpl.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/mp3diags/patches/patch-src_MainFormDlgImpl.cpp      Sat Jun 17 19:36:06 2017 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_MainFormDlgImpl.cpp,v 1.1 2017/06/17 19:36:06 joerg Exp $
+
+--- src/MainFormDlgImpl.cpp.orig       2017-06-10 15:47:07.854499376 +0000
++++ src/MainFormDlgImpl.cpp
+@@ -119,7 +119,7 @@ namespace
+         {
+             m_strFileName = strFileName;
+             ofstream_utf8 out (m_strFileName.c_str(), ios_base::app);
+-            return out;
++            return bool(out);
+         }
+ 
+         void close() { m_strFileName.clear(); }
+@@ -128,7 +128,7 @@ namespace
+         {
+             ofstream_utf8 out (m_strFileName.c_str(), ios_base::app);
+             out << s;
+-            return out;
++            return bool(out);
+         }
+     };
+ #else // #ifndef WIN32



Home | Main Index | Thread Index | Old Index