Small tweaks to class initialization.
This commit is contained in:
@@ -32,10 +32,14 @@
|
||||
#endif
|
||||
|
||||
// Constructor
|
||||
SGStarData::SGStarData() {
|
||||
SGStarData::SGStarData() :
|
||||
nstars(0)
|
||||
{
|
||||
}
|
||||
|
||||
SGStarData::SGStarData( SGPath path ) {
|
||||
SGStarData::SGStarData( SGPath path ) :
|
||||
nstars(0)
|
||||
{
|
||||
data_path = SGPath( path );
|
||||
load();
|
||||
}
|
||||
|
||||
@@ -53,13 +53,16 @@ static string fix_path( const string path ) {
|
||||
|
||||
|
||||
// default constructor
|
||||
SGPath::SGPath() {
|
||||
path = "";
|
||||
SGPath::SGPath() :
|
||||
path("")
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// create a path based on "path"
|
||||
SGPath::SGPath( const string p ) {
|
||||
SGPath::SGPath( const string p ) :
|
||||
path("")
|
||||
{
|
||||
set( p );
|
||||
}
|
||||
|
||||
|
||||
@@ -102,7 +102,10 @@ public:
|
||||
inline long get_usec() const { return usec; }
|
||||
};
|
||||
|
||||
inline SGTimeStamp::SGTimeStamp() {
|
||||
inline SGTimeStamp::SGTimeStamp() :
|
||||
seconds(0),
|
||||
usec(0)
|
||||
{
|
||||
}
|
||||
|
||||
inline SGTimeStamp::SGTimeStamp( const long s, const long u ) {
|
||||
|
||||
Reference in New Issue
Block a user