aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-07-14 19:40:07 +1000
committernyamatongwe <devnull@localhost>2010-07-14 19:40:07 +1000
commitfc13cea4ab62fa2180f89fd439e163817664a5e2 (patch)
treeae992c37ff1227e5f6acb95d4193064026120266
parentb8d0dde31531b2b7fcf776e1b2647f936f45403b (diff)
downloadscintilla-mirror-fc13cea4ab62fa2180f89fd439e163817664a5e2.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_) :