From 0608c2cbfe8697f9912397afce2987bee23fd1ce Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 7 Feb 2015 14:04:53 +0200 Subject: Turn StringConversion into a C++11 scoped enumeration Change-Id: I353a62bac6c8bf00b20c93d9778fc45ade5d502c --- sc/inc/calcconfig.hxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sc/inc') diff --git a/sc/inc/calcconfig.hxx b/sc/inc/calcconfig.hxx index 7cc8fadcc7d0..314aa95cc598 100644 --- a/sc/inc/calcconfig.hxx +++ b/sc/inc/calcconfig.hxx @@ -33,12 +33,12 @@ enum ScRecalcOptions struct SC_DLLPUBLIC ScCalcConfig { // from most stringent to most relaxed - enum StringConversion + enum class StringConversion { - STRING_CONVERSION_AS_ERROR = 0, ///< =1+"1" or =1+"x" give #VALUE! - STRING_CONVERSION_AS_ZERO, ///< =1+"1" or =1+"x" give 1 - STRING_CONVERSION_UNAMBIGUOUS, ///< =1+"1" gives 2, but =1+"1.000" or =1+"x" give #VALUE! - STRING_CONVERSION_LOCALE_DEPENDENT ///< =1+"1.000" may be 2 or 1001 ... =1+"x" gives #VALUE! + ERROR, ///< =1+"1" or =1+"x" give #VALUE! + ZERO, ///< =1+"1" or =1+"x" give 1 + UNAMBIGUOUS, ///< =1+"1" gives 2, but =1+"1.000" or =1+"x" give #VALUE! + LOCALE ///< =1+"1.000" may be 2 or 1001 ... =1+"x" gives #VALUE! }; formula::FormulaGrammar::AddressConvention meStringRefAddressSyntax; StringConversion meStringConversion; -- cgit