mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 09:33:45 +02:00
don't call constructor and assignment operator
This commit is contained in:
parent
1415a25302
commit
787bebb5fc
1 changed files with 30 additions and 10 deletions
|
@ -33,20 +33,40 @@
|
|||
// int sampleAt;
|
||||
|
||||
|
||||
CounterStatHistory::CounterStatHistory() {
|
||||
init();
|
||||
CounterStatHistory::CounterStatHistory() :
|
||||
currentCount(0),
|
||||
currentDelta(0),
|
||||
currentTime(0.0),
|
||||
lastCount(0),
|
||||
lastTime(0.0),
|
||||
totalTime(0.0),
|
||||
sampleAt(-1),
|
||||
sampleCount(0) {
|
||||
}
|
||||
|
||||
CounterStatHistory::CounterStatHistory(std::string myName) {
|
||||
init();
|
||||
name = myName;
|
||||
CounterStatHistory::CounterStatHistory(std::string myName) :
|
||||
name(myName),
|
||||
currentCount(0),
|
||||
currentDelta(0),
|
||||
currentTime(0.0),
|
||||
lastCount(0),
|
||||
lastTime(0.0),
|
||||
totalTime(0.0),
|
||||
sampleAt(-1),
|
||||
sampleCount(0) {
|
||||
}
|
||||
|
||||
CounterStatHistory::CounterStatHistory(std::string myName, double initialTime, long initialCount) {
|
||||
init();
|
||||
lastCount = currentCount = initialCount;
|
||||
lastTime = currentTime = totalTime = initialTime;
|
||||
name = myName;
|
||||
|
||||
CounterStatHistory::CounterStatHistory(std::string myName, double initialTime, long initialCount) :
|
||||
name(myName),
|
||||
currentCount(initialCount),
|
||||
currentDelta(0),
|
||||
currentTime(initialTime),
|
||||
lastCount(initialCount),
|
||||
lastTime(initialTime),
|
||||
totalTime(initialTime),
|
||||
sampleAt(-1),
|
||||
sampleCount(0) {
|
||||
}
|
||||
|
||||
void CounterStatHistory::init() {
|
||||
|
|
Loading…
Reference in a new issue