Skip to content

Commit fd2d656

Browse files
Change C-style cast to C++ (#905)
Google style dfoes not allow C-style casts Resolves: OLPEDGE-2033 Signed-off-by: Serhii Lozynskyi <ext-serhii.lozynskyi@here.com>
1 parent a36a566 commit fd2d656

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

olp-cpp-sdk-dataservice-read/src/repositories/QuadTreeIndex.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ void QuadTreeIndex::CreateBlob(olp::geo::TileKey root, int depth,
208208

209209
data_->root_tilekey = root.ToQuadKey64();
210210
data_->blob_version = 0;
211-
data_->depth = uint8_t(depth);
212-
data_->subkey_count = uint16_t(subs.size());
213-
data_->parent_count = uint8_t(parents.size());
211+
data_->depth = static_cast<uint8_t>(depth);
212+
data_->subkey_count = static_cast<uint16_t>(subs.size());
213+
data_->parent_count = static_cast<uint8_t>(parents.size());
214214

215215
// write SubEntry tiles
216216
SubEntry* entry_ptr = data_->entries;

0 commit comments

Comments
 (0)