// Constructor
-SGEphemeris::SGEphemeris( const string &path ) {
+SGEphemeris::SGEphemeris( const std::string &path ) {
our_sun = new Star;
moon = new MoonPos;
mercury = new Mercury;
uranus = new Uranus;
neptune = new Neptune;
nplanets = 7;
- for ( int i = 0; i < nplanets; ++i ) {
- sgdSetVec3( planets[i], 0.0, 0.0, 0.0 );
- }
+ for ( int i = 0; i < nplanets; ++i )
+ planets[i] = SGVec3d::zeros();
stars = new SGStarData( SGPath(path) );
}