~ubuntu-branches/ubuntu/trusty/unrar-nonfree/trusty

« back to all changes in this revision

Viewing changes to savepos.cpp

  • Committer: Package Import Robot
  • Author(s): Martin Meredith
  • Date: 2013-08-15 17:15:19 UTC
  • mfrom: (1.1.17) (5.1.17 sid)
  • Revision ID: package-import@ubuntu.com-20130815171519-dk2t2lrzh952r1xi
Tags: 1:5.0.10-1
* New upstream release
* Added hardening support (Closes: #694611)
* Bumped Standards version
* Updated to debhelper 9
* Moved homepage in control file to Source Section

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "rar.hpp"
2
 
 
3
 
SaveFilePos::SaveFilePos(File &SaveFile)
4
 
{
5
 
  SaveFilePos::SaveFile=&SaveFile;
6
 
  SavePos=SaveFile.Tell();
7
 
  CloseCount=SaveFile.CloseCount;
8
 
}
9
 
 
10
 
 
11
 
SaveFilePos::~SaveFilePos()
12
 
{
13
 
  if (CloseCount==SaveFile->CloseCount)
14
 
    SaveFile->Seek(SavePos,SEEK_SET);
15
 
}