aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-10 23:03:35 +0000
committerlloyd <[email protected]>2008-11-10 23:03:35 +0000
commitf947cfbd1523f2bd1930fccbd4a5586f633661ed (patch)
tree966e71638c8d40a63e0a11c4b2fc921810db2111 /src/utils
parentc975e9017032bcbce0d5beffd7fc89fa1b3210a0 (diff)
Shorten SCAN_Name's argument arg in function names
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/scan_name.cpp4
-rw-r--r--src/utils/scan_name.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/scan_name.cpp b/src/utils/scan_name.cpp
index f0df99bde..7855f3ec3 100644
--- a/src/utils/scan_name.cpp
+++ b/src/utils/scan_name.cpp
@@ -71,14 +71,14 @@ bool SCAN_Name::provider_allowed(const std::string& provider) const
return (providers.find(provider) != providers.end());
}
-std::string SCAN_Name::argument(u32bit i) const
+std::string SCAN_Name::arg(u32bit i) const
{
if(i > arg_count())
throw std::range_error("SCAN_Name::argument");
return name[i+1];
}
-u32bit SCAN_Name::argument_as_u32bit(u32bit i, u32bit def_value) const
+u32bit SCAN_Name::arg_as_u32bit(u32bit i, u32bit def_value) const
{
if(i >= arg_count())
return def_value;
diff --git a/src/utils/scan_name.h b/src/utils/scan_name.h
index a463c6adc..15fa09f48 100644
--- a/src/utils/scan_name.h
+++ b/src/utils/scan_name.h
@@ -53,13 +53,13 @@ class SCAN_Name
@param i which argument
@return the ith argument
*/
- std::string argument(u32bit i) const;
+ std::string arg(u32bit i) const;
/**
@param i which argument
@return the ith argument as a u32bit, or a default value
*/
- u32bit argument_as_u32bit(u32bit i, u32bit def_value) const;
+ u32bit arg_as_u32bit(u32bit i, u32bit def_value) const;
std::string as_string() const { return orig_algo_spec; }
std::string providers_string() const { return orig_providers; }