Do bulk replace of stl types.
This commit is contained in:
parent
521486be62
commit
c25a56ee19
531 changed files with 2274 additions and 2181 deletions
|
@ -4,9 +4,9 @@
|
|||
#include "StringUtils.h"
|
||||
#include "CyclicRedundancyChecker.h"
|
||||
|
||||
std::string PngHeader::toString() const
|
||||
String PngHeader::toString() const
|
||||
{
|
||||
std::stringstream sstr;
|
||||
Stringstream sstr;
|
||||
sstr << "PngHeader" << "\n";
|
||||
sstr << "width: " << mWidth << "\n";
|
||||
sstr << "height: " << mHeight << "\n";
|
||||
|
@ -52,12 +52,12 @@ void PngHeader::getSignature(VecBytes& sig) const
|
|||
sig = {13, 10, 26, 10};
|
||||
}
|
||||
|
||||
std::string PngHeader::getFileName() const
|
||||
String PngHeader::getFileName() const
|
||||
{
|
||||
return "PNG";
|
||||
}
|
||||
|
||||
const std::string& PngHeader::getChunkName() const
|
||||
const String& PngHeader::getChunkName() const
|
||||
{
|
||||
return mName;
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ void PngHeader::updateData()
|
|||
DWord PngHeader::getCrc()
|
||||
{
|
||||
CyclicRedundancyChecker crc_check;
|
||||
std::vector<unsigned char> char_data = StringUtils::toBytes(mName);
|
||||
Vector<unsigned char> char_data = StringUtils::toBytes(mName);
|
||||
for (auto c : char_data)
|
||||
{
|
||||
crc_check.addValue(c);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue