summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-07-29 14:51:05 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-07-29 14:51:05 +0200
commitca0d389c8969ddb679358ca16e4bcddfcdaf9b03 (patch)
tree21acfcc7fdc65ce1b6a3c13e94a5d3a7217838ca /apt-pkg
parent12be8a62d1abb9253a4695badbf70e7210f9b0d2 (diff)
downloadapt-ca0d389c8969ddb679358ca16e4bcddfcdaf9b03.tar.gz
add inline DumpError() to avoid subtle API break
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/error.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/apt-pkg/contrib/error.h b/apt-pkg/contrib/error.h
index d3950042..4af0302c 100644
--- a/apt-pkg/contrib/error.h
+++ b/apt-pkg/contrib/error.h
@@ -217,10 +217,22 @@ public: /*{{{*/
*
* \param threshold minimum level printed
*/
- void inline DumpErrors(MsgType const &threshold = WARNING) {
+ void inline DumpErrors(MsgType const &threshold) {
DumpErrors(std::cerr, threshold);
}
+ // mvo: we do this instead of using a default parameter in the
+ // previous declaration to avoid a (subtle) API break for
+ // e.g. sigc++ and mem_fun0
+ /** \brief dumps the messages of type WARNING or higher to std::cerr
+ *
+ * Note that all messages are discarded, displayed or not.
+ *
+ */
+ void inline DumpErrors() {
+ DumpErrors(WARNING);
+ }
+
/** \brief put the current Messages into the stack
*
* All "old" messages will be pushed into a stack to