From c8928835c5938e7bb2372f56042af4446f0dc73f Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 4 Jul 2013 19:02:10 +0200 Subject: [PATCH] BRepositoryCache: use BStandardErrorOutput --- headers/os/package/RepositoryCache.h | 1 - src/kits/package/RepositoryCache.cpp | 14 ++------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/headers/os/package/RepositoryCache.h b/headers/os/package/RepositoryCache.h index 3a1ee37de0..e21c826199 100644 --- a/headers/os/package/RepositoryCache.h +++ b/headers/os/package/RepositoryCache.h @@ -37,7 +37,6 @@ public: private: struct RepositoryContentHandler; - struct StandardErrorOutput; private: BEntry fEntry; diff --git a/src/kits/package/RepositoryCache.cpp b/src/kits/package/RepositoryCache.cpp index c62c204997..65fabc2338 100644 --- a/src/kits/package/RepositoryCache.cpp +++ b/src/kits/package/RepositoryCache.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -181,17 +182,6 @@ private: }; -// #pragma mark - StandardErrorOutput - - -class BRepositoryCache::StandardErrorOutput : public BErrorOutput { - virtual void PrintErrorVarArgs(const char* format, va_list args) - { - vfprintf(stderr, format, args); - } -}; - - // #pragma mark - BRepositoryCache @@ -252,7 +242,7 @@ BRepositoryCache::SetTo(const BEntry& entry) return result; // read repository cache - StandardErrorOutput errorOutput; + BStandardErrorOutput errorOutput; BRepositoryReader repositoryReader(&errorOutput); if ((result = repositoryReader.Init(repositoryCachePath.Path())) != B_OK) return result;