X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fstructure%2Fsubsystem_mgr.hxx;h=a751d30699426c14561447c1acbd741e78421384;hb=f1f0fa0aa95c2f1562fa9c09365baf8b2b55bfc7;hp=c759e7901ada9fbe2f4c5f8b5d6c69621d9ea51b;hpb=426f6de16f525a7e603338a091ab191c132e3ba0;p=simgear.git diff --git a/simgear/structure/subsystem_mgr.hxx b/simgear/structure/subsystem_mgr.hxx index c759e790..a751d306 100644 --- a/simgear/structure/subsystem_mgr.hxx +++ b/simgear/structure/subsystem_mgr.hxx @@ -45,9 +45,11 @@ private: SGTimeStamp time; public: - TimingInfo(string name, SGTimeStamp &t) { eventName = name; time = t;}; - string getName() { return eventName; }; - SGTimeStamp getTime() { return time; }; + TimingInfo(const string& name, const SGTimeStamp &t) : + eventName(name), time(t) + { } + const string& getName() const { return eventName; } + const SGTimeStamp& getTime() const { return time; } }; typedef vector eventTimeVec; @@ -271,7 +273,7 @@ public: * Place time stamps at strategic points in the execution of subsystems * update() member functions. Predominantly for debugging purposes. */ - void stamp(string name); + void stamp(const string& name); @@ -317,10 +319,12 @@ public: private: - struct Member { + class Member { - Member (); + private: Member (const Member &member); + public: + Member (); virtual ~Member (); virtual void update (double delta_time_sec);