#1038. Initialize timeScale_ in ctor because MSVC (correctly) refused header member variable initialization.

This commit is contained in:
Robin Mills 2015-03-21 22:33:21 +00:00
parent 7817180351
commit 6b89dc9452
2 changed files with 2 additions and 1 deletions

View File

@ -223,7 +223,7 @@ namespace Exiv2 {
private:
//! Variable which stores Time Scale unit, used to calculate time.
uint64_t timeScale_ = 1;
uint64_t timeScale_;
//! Variable which stores current stream being processsed.
int currentStream_;
//! Variable to check the end of metadata traversing.

View File

@ -610,6 +610,7 @@ namespace Exiv2 {
QuickTimeVideo::QuickTimeVideo(BasicIo::AutoPtr io)
: Image(ImageType::qtime, mdNone, io)
, timeScale_(1)
{
} // QuickTimeVideo::QuickTimeVideo