summaryrefslogtreecommitdiff
path: root/option.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-20 02:14:53 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:28 -0400
commitb84f676946941df6f7e8476d77d1db0cbe7736c5 (patch)
tree9ee7c7a2d3b7496b38ad127519210adfeced2241 /option.h
parent539370ff1b37772e9f11439f652ffd3583beeedb (diff)
downloadfork-ledger-b84f676946941df6f7e8476d77d1db0cbe7736c5.tar.gz
fork-ledger-b84f676946941df6f7e8476d77d1db0cbe7736c5.tar.bz2
fork-ledger-b84f676946941df6f7e8476d77d1db0cbe7736c5.zip
Did some optimization and memory cleanup
Diffstat (limited to 'option.h')
-rw-r--r--option.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/option.h b/option.h
index 778b16ba..51ed1704 100644
--- a/option.h
+++ b/option.h
@@ -11,19 +11,19 @@
namespace ledger {
-bool process_option(const std::string& name, xml::xpath_t::scope_t * scope,
+bool process_option(const string& name, xml::xpath_t::scope_t * scope,
const char * arg = NULL);
-void process_environment(const char ** envp, const std::string& tag,
+void process_environment(const char ** envp, const string& tag,
xml::xpath_t::scope_t * scope);
void process_arguments(int argc, char ** argv, const bool anywhere,
xml::xpath_t::scope_t * scope,
- std::list<std::string>& args);
+ std::list<string>& args);
class option_error : public error {
public:
- option_error(const std::string& reason) throw() : error(reason) {}
+ option_error(const string& reason) throw() : error(reason) {}
virtual ~option_error() throw() {}
};