Eliminate empty default constructor for SGReaderWriterBTGOptions
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user