Eliminate empty default constructor for SGReaderWriterBTGOptions

This commit is contained in:
timoore
2008-07-19 16:00:58 +00:00
parent 315d83bc88
commit 1729841083
2 changed files with 8 additions and 3 deletions

View File

@@ -26,6 +26,11 @@
using namespace simgear;
// SGReaderWriterBTGOptions static value here to avoid an additional,
// tiny source file.
std::string SGReaderWriterBTGOptions::defaultOptions;
const char* SGReaderWriterBTG::className() const
{
return "BTG Database reader";

View File

@@ -21,10 +21,9 @@
#include <simgear/scene/tgdb/obj.hxx>
class SGReaderWriterBTGOptions : public osgDB::ReaderWriter::Options {
public:
SGReaderWriterBTGOptions() {}
SGReaderWriterBTGOptions(const std::string& str):
SGReaderWriterBTGOptions(const std::string& str = defaultOptions) :
osgDB::ReaderWriter::Options(str),
_matlib(0), _calcLights(false),
_matlib(0), _calcLights(true),
_useRandomObjects(false),
_useRandomVegetation(false)
{}
@@ -58,5 +57,6 @@ protected:
bool _calcLights;
bool _useRandomObjects;
bool _useRandomVegetation;
static std::string defaultOptions;
};
#endif