aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-07-14 19:40:07 +1000
committernyamatongwe <unknown>2010-07-14 19:40:07 +1000
commit8a34c1bd2049a0ff500c44a248e136e87d5fed35 (patch)
treee3132f6089e5d0ce7ffddc3710b60345705533af
parent071dd4b2245f27b93cbc40a2e840071f6ff757d3 (diff)
downloadscintilla-mirror-8a34c1bd2049a0ff500c44a248e136e87d5fed35.tar.gz
Visual C++ 98 had a fatal error with the previous definition of a default constructor.
This is equivalent and compiles.
-rw-r--r--lexlib/OptionSet.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lexlib/OptionSet.h b/lexlib/OptionSet.h
index 00013ce5b..277ca7a35 100644
--- a/lexlib/OptionSet.h
+++ b/lexlib/OptionSet.h
@@ -28,7 +28,10 @@ class OptionSet {
plcos ps;
};
std::string description;
- Option(plcob pb_=0, std::string description_="") :
+ Option() :
+ opType(SC_TYPE_BOOLEAN), pb(0), description("") {
+ }
+ Option(plcob pb_, std::string description_="") :
opType(SC_TYPE_BOOLEAN), pb(pb_), description(description_) {
}
Option(plcoi pi_, std::string description_) :