From 80bc2f0d00b0cc7e2432de44593273d57478a337 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Thu, 15 Mar 2007 08:57:01 +0000 Subject: [PATCH] Added PathInfo::c_str --- zypp/PathInfo.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zypp/PathInfo.h b/zypp/PathInfo.h index 2e35a6c..6e5289b 100644 --- a/zypp/PathInfo.h +++ b/zypp/PathInfo.h @@ -244,6 +244,8 @@ namespace zypp const Pathname & path() const { return path_t; } /** Return current Pathname as String. */ const std::string & asString() const { return path_t.asString(); } + /** Return current Pathname as C-string. */ + const char * c_str() const { return path_t.asString().c_str(); } /** Return current stat Mode. */ Mode mode() const { return mode_e; } /** Return error returned from last stat/lstat call. */ -- 2.7.4