Ticket #850: patch_ticket850.txt

File patch_ticket850.txt, 1.1 KB (added by s.ochsenknecht@…, 13 years ago)

patch

Line 
1Index: src/value_semantic.cpp
2===================================================================
3--- src/value_semantic.cpp (Revision 57194)
4+++ src/value_semantic.cpp (Arbeitskopie)
5@@ -169,15 +169,7 @@
6 void validate(any& v, const vector<string>& xs, std::string*, int)
7 {
8 check_first_occurrence(v);
9- string s(get_single_string(xs));
10- if (!s.empty() && (
11- (*s.begin() == '\'' && *s.rbegin() == '\'' ||
12- *s.begin() == '"' && *s.rbegin() == '"')))
13- {
14- v = any(s.substr(1, s.size()-2));
15- }
16- else
17- v = any(s);
18+ v = any(get_single_string(xs));
19 }
20
21 #if !defined(BOOST_NO_STD_WSTRING)
22@@ -185,12 +177,7 @@
23 void validate(any& v, const vector<wstring>& xs, std::string*, int)
24 {
25 check_first_occurrence(v);
26- wstring s(get_single_string(xs));
27- if (*s.begin() == L'\'' && *s.rbegin() == L'\'' ||
28- *s.begin() == L'"' && *s.rbegin() == L'"')
29- v = any(s.substr(1, s.size()-2));
30- else
31- v = any(s);
32+ v = any(get_single_string(xs));
33 }
34 #endif
35