|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73914 - sandbox/SOC/2011/checks/boost/checks
From: pierre.talbot.6114_at_[hidden]
Date: 2011-08-19 06:46:29
Author: trademark
Date: 2011-08-19 06:46:28 EDT (Fri, 19 Aug 2011)
New Revision: 73914
URL: http://svn.boost.org/trac/boost/changeset/73914
Log:
Correction of typos. (traduction -> translation)
Text files modified:
sandbox/SOC/2011/checks/boost/checks/modulus97.hpp | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
Modified: sandbox/SOC/2011/checks/boost/checks/modulus97.hpp
==============================================================================
--- sandbox/SOC/2011/checks/boost/checks/modulus97.hpp (original)
+++ sandbox/SOC/2011/checks/boost/checks/modulus97.hpp 2011-08-19 06:46:28 EDT (Fri, 19 Aug 2011)
@@ -10,7 +10,7 @@
#include <boost/preprocessor/repetition.hpp>
#include <boost/lexical_cast.hpp>
-#include <boost/checks/traduction_exception.hpp>
+#include <boost/checks/translation_exception.hpp>
#include <boost/checks/weight.hpp>
#include <boost/checks/iteration_sense.hpp>
#include <boost/checks/weighted_sum.hpp>
@@ -27,20 +27,20 @@
}
template <typename checkdigits_iter>
- static typename checkdigits_iter compute_multicheckdigit( int checksum, checkdigits_iter mod97_checkdigits )
+ static typename checkdigits_iter compute_multicheckdigit( int checksum, checkdigits_iter checkdigits )
{
- unsigned int checkdigits = 98 - (checksum % 97) ;
+ unsigned int mod97_checkdigits = 98 - (checksum % 97) ;
try{
- *mod97_checkdigits = boost::lexical_cast<checkdigits_iter::value_type>(checkdigits / 10) ;
- ++mod97_checkdigits;
- *mod97_checkdigits = boost::lexical_cast<checkdigits_iter::value_type>(checkdigits % 10) ;
- ++mod97_checkdigits;
+ *checkdigits = boost::lexical_cast<checkdigits_iter::value_type>(mod97_checkdigits / 10) ;
+ ++checkdigits;
+ *checkdigits = boost::lexical_cast<checkdigits_iter::value_type>(mod97_checkdigits % 10) ;
+ ++checkdigits;
}
catch( boost::bad_lexical_cast ){
- throw boost::checks::traduction_exception() ;
+ throw boost::checks::translation_exception() ;
}
- return mod97_checkdigits;
+ return checkdigits;
}
};
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk