mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:41:20 +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;
|
// int sampleAt;
|
||||||
|
|
||||||
|
|
||||||
CounterStatHistory::CounterStatHistory() {
|
CounterStatHistory::CounterStatHistory() :
|
||||||
init();
|
currentCount(0),
|
||||||
|
currentDelta(0),
|
||||||
|
currentTime(0.0),
|
||||||
|
lastCount(0),
|
||||||
|
lastTime(0.0),
|
||||||
|
totalTime(0.0),
|
||||||
|
sampleAt(-1),
|
||||||
|
sampleCount(0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
CounterStatHistory::CounterStatHistory(std::string myName) {
|
CounterStatHistory::CounterStatHistory(std::string myName) :
|
||||||
init();
|
name(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();
|
CounterStatHistory::CounterStatHistory(std::string myName, double initialTime, long initialCount) :
|
||||||
lastCount = currentCount = initialCount;
|
name(myName),
|
||||||
lastTime = currentTime = totalTime = initialTime;
|
currentCount(initialCount),
|
||||||
name = myName;
|
currentDelta(0),
|
||||||
|
currentTime(initialTime),
|
||||||
|
lastCount(initialCount),
|
||||||
|
lastTime(initialTime),
|
||||||
|
totalTime(initialTime),
|
||||||
|
sampleAt(-1),
|
||||||
|
sampleCount(0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CounterStatHistory::init() {
|
void CounterStatHistory::init() {
|
||||||
|
|
Loading…
Reference in a new issue