message: examples: aditofdemo: Do not copy the streams
diff: @@ -20,7 +20,7 @@ AditofDemoRecorder::~AditofDemoRecorder() {
  void AditofDemoRecorder::startRecording(const std::string &fileName,
  unsigned int height, unsigned int width,
  unsigned int fps) {
  - m_recordFile = std::ofstream(fileName, std::ios::binary);
  + m_recordFile.open(fileName, std::ios::binary);
  m_recordFile.write(reinterpret_cast<const char *>(&height),
  sizeof(unsigned int));
  m_recordFile.write(reinterpret_cast<const char *>(&width),
  @@ -48,7 +48,7 @@ int AditofDemoRecorder::startPlayback(const std::string &fileName, int &fps) {
  unsigned int height = 0;
  unsigned int width = 0;
  - m_playbackFile = std::ifstream(fileName, std::ios::binary);
  + m_playbackFile.open(fileName, std::ios::binary);
  m_playbackFile.seekg(0, std::ios_base::end);
  int fileSize = m_playbackFile.tellg();
  @@ -113,10 +113,7 @@ bool AditofDemoRecorder::isPlaybackFinished() const {
  return m_playBackEofReached;
  }
  -int AditofDemoRecorder::getNumberOfFrames() const
  -{
  - return m_numberOfFrames;
  -}
  +int AditofDemoRecorder::getNumberOfFrames() const { return m_numberOfFrames; }
  void AditofDemoRecorder::recordThread() {
  while (!m_recordTreadStop) {
  