c++ style
This commit is contained in:
parent
df352efc8f
commit
1b3e07ef23
1 changed files with 4 additions and 4 deletions
|
@ -71,7 +71,7 @@ public:
|
||||||
wkbGeometryCollectionZ=1007
|
wkbGeometryCollectionZ=1007
|
||||||
};
|
};
|
||||||
|
|
||||||
wkb_reader(const char* wkb, unsigned size, wkbFormat format)
|
wkb_reader(const char* wkb, std::size_t size, wkbFormat format)
|
||||||
: wkb_(wkb),
|
: wkb_(wkb),
|
||||||
size_(size),
|
size_(size),
|
||||||
pos_(0),
|
pos_(0),
|
||||||
|
@ -81,9 +81,9 @@ public:
|
||||||
if (format_ == wkbAuto)
|
if (format_ == wkbAuto)
|
||||||
{
|
{
|
||||||
if (size_ >= 44
|
if (size_ >= 44
|
||||||
&& (unsigned char)(wkb_[0]) == (unsigned char)(0x00)
|
&& static_cast<unsigned char>(wkb_[0]) == static_cast<unsigned char>(0x00)
|
||||||
&& (unsigned char)(wkb_[38]) == (unsigned char)(0x7C)
|
&& static_cast<unsigned char>(wkb_[38]) == static_cast<unsigned char>(0x7C)
|
||||||
&& (unsigned char)(wkb_[size_ - 1]) == (unsigned char)(0xFE))
|
&& static_cast<unsigned char>(wkb_[size_ - 1]) == static_cast<unsigned char>(0xFE))
|
||||||
{
|
{
|
||||||
format_ = wkbSpatiaLite;
|
format_ = wkbSpatiaLite;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue