diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-12-08 15:03:24 +0100 |
|---|---|---|
| committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-12-08 15:03:24 +0100 |
| commit | def39238640489b41da5cdc8fd4a83d16d49fcc7 (patch) | |
| tree | 7700bf86d63e474ebf613c90b09d078aab333e88 /src/include | |
| parent | 816f3e001271ed8ab7fdadb6d90aeb2c61362dac (diff) | |
| download | abrt-def39238640489b41da5cdc8fd4a83d16d49fcc7.tar.gz abrt-def39238640489b41da5cdc8fd4a83d16d49fcc7.tar.xz abrt-def39238640489b41da5cdc8fd4a83d16d49fcc7.zip | |
removal of C++isms from libabrt, part 2
This patch rewrites a few places where we use C++ strings
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/abrtlib.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/include/abrtlib.h b/src/include/abrtlib.h index f3a5de4e..d8dd361a 100644 --- a/src/include/abrtlib.h +++ b/src/include/abrtlib.h @@ -245,16 +245,6 @@ bool load_conf_file(const char *pPath, map_string_h *settings, bool skipKeysWith /* C++ style stuff */ #ifdef __cplusplus -std::string unsigned_to_string(unsigned long long x); -std::string signed_to_string(long long x); -template <class T> inline -std::string to_string(T x) -{ - if ((T)~(T)0 < (T)0) /* T is a signed type */ - return signed_to_string(x); - return unsigned_to_string(x); -} - // TODO: npajkovs: full rewrite ssprintf -> xasprintf static inline std::string ssprintf(const char *format, ...) { |
