Imported Upstream version 15.0.0
[platform/upstream/libzypp.git] / zypp / PluginFrame.h
index 96c7bad..8683fe2 100644 (file)
@@ -89,9 +89,9 @@ namespace zypp
       /** Whether this is an empty frame. */
       bool empty() const;
 
-      /** Evaluate in a boolean context (not an empty frame) */
+      /** Evaluate in a boolean context (empty frame) */
       explicit operator bool() const
-      { return !empty(); }
+      { return empty(); }
 
     public:
       /** Return the frame command. */
@@ -174,7 +174,7 @@ namespace zypp
       bool keyEmpty( const std::string & key_r ) const
       { return headerList().find( key_r ) == headerEnd(); }
 
-      /** Return number of header entries for \c key_r. */
+      /** Return number of header entires for \c key_r. */
       bool keySize( const std::string & key_r ) const
       { return headerList().count( key_r ); }
 
@@ -201,7 +201,7 @@ namespace zypp
       /** Not throwing version returing one of the matching header values or \c default_r string. */
       const std::string & getHeaderNT( const std::string & key_r, const std::string & default_r = std::string() ) const;
 
-      /** Set header for \c key_r removing all other occurrences of \c key_r.
+      /** Set header for \c key_r removing all other occurences of \c key_r.
        * \throw PluginFrameException If key contains illegal chars (\c NL or \c :)
        * \throw PluginFrameException If value contains illegal chars (\c NL)
        */
@@ -256,9 +256,9 @@ namespace zypp
   /** \relates PluginFrame Stream output for logging */
   std::ostream & operator<<( std::ostream & str, const PluginFrame & obj );
 
-  /** \relates PluginFrame Stream output writing all data for logging (no throw) */
+  /** \relates PluginFrame Stream output sending all data */
   inline std::ostream & dumpOn( std::ostream & str, const PluginFrame & obj )
-  { if ( str ) try { PluginFrame::writeTo( str, obj ); } catch(...){}; return str; }
+  { return PluginFrame::writeTo( str, obj ); }
 
   /** \relates PluginFrame Construct from stream. */
   inline std::istream & operator>>( std::istream & str, PluginFrame & obj )