comparison Core/Compression/HierarchicalZipWriter.cpp @ 656:08eca5d86aad

fixes to cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Nov 2013 11:19:31 +0100
parents bdd72233b105
children 2d0a347e8cfc
comparison
equal deleted inserted replaced
655:93adc693cc60 656:08eca5d86aad
79 std::string HierarchicalZipWriter::Index::GetCurrentDirectoryPath() const 79 std::string HierarchicalZipWriter::Index::GetCurrentDirectoryPath() const
80 { 80 {
81 std::string result; 81 std::string result;
82 82
83 Stack::const_iterator it = stack_.begin(); 83 Stack::const_iterator it = stack_.begin();
84 it++; // Skip the root node (to avoid absolute paths) 84 ++it; // Skip the root node (to avoid absolute paths)
85 85
86 while (it != stack_.end()) 86 while (it != stack_.end())
87 { 87 {
88 result += (*it)->name_ + "/"; 88 result += (*it)->name_ + "/";
89 it++; 89 ++it;
90 } 90 }
91 91
92 return result; 92 return result;
93 } 93 }
94 94
116 stack_.push_back(new Directory); 116 stack_.push_back(new Directory);
117 } 117 }
118 118
119 HierarchicalZipWriter::Index::~Index() 119 HierarchicalZipWriter::Index::~Index()
120 { 120 {
121 for (Stack::iterator it = stack_.begin(); it != stack_.end(); it++) 121 for (Stack::iterator it = stack_.begin(); it != stack_.end(); ++it)
122 { 122 {
123 delete *it; 123 delete *it;
124 } 124 }
125 } 125 }
126 126