From 973221821ac8e20da4eadbf4ad552f686b1ace48 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 22 Jun 2012 15:07:35 +0200 Subject: Get rid of dependency on libcult --- xsde/xsde.hxx | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) (limited to 'xsde/xsde.hxx') diff --git a/xsde/xsde.hxx b/xsde/xsde.hxx index efc4c06..41b0cba 100644 --- a/xsde/xsde.hxx +++ b/xsde/xsde.hxx @@ -6,25 +6,18 @@ #ifndef XSDE_HXX #define XSDE_HXX +#include +#include #include // std::remove #include #include // Path -#include -#include -#include +#include -using namespace Cult::Types; - -// -// -typedef Cult::Containers::Set WarningSet; - -// -// -typedef Cult::Containers::Vector FileList; +typedef std::set WarningSet; +typedef std::vector FileList; // // @@ -49,14 +42,14 @@ struct AutoUnlink private: XSDFrontend::SemanticGraph::Path file_; - Boolean canceled_; + bool canceled_; }; // // struct AutoUnlinks { - Void + void add (XSDFrontend::SemanticGraph::Path const& file) { unlinks_.push_back( @@ -64,15 +57,15 @@ struct AutoUnlinks new (shared) AutoUnlink (file))); } - Void + void cancel () { - for (Unlinks::Iterator i (unlinks_.begin ()); i != unlinks_.end (); ++i) + for (Unlinks::iterator i (unlinks_.begin ()); i != unlinks_.end (); ++i) (*i)->cancel (); } private: - typedef Cult::Containers::Vector > Unlinks; + typedef std::vector > Unlinks; Unlinks unlinks_; }; -- cgit v1.1