Skip to content

Commit 74cfc41

Browse files
committed
Update inactive workflows
1 parent 6900a2b commit 74cfc41

File tree

5 files changed

+8
-81
lines changed

5 files changed

+8
-81
lines changed

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
# Initializes the CodeQL tools for scanning.
4747
- name: Initialize CodeQL
48-
uses: github/codeql-action/init@v2
48+
uses: github/codeql-action/init@v3
4949
with:
5050
languages: ${{ matrix.language }}
5151
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -59,7 +59,7 @@ jobs:
5959
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
6060
# If this step fails, then you should remove it and run the build manually (see below)
6161
# - name: Autobuild
62-
# uses: github/codeql-action/autobuild@v2
62+
# uses: github/codeql-action/autobuild@v3
6363

6464
# ℹ️ Command-line programs to run using the OS shell.
6565
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -73,6 +73,6 @@ jobs:
7373
cmake --build ./build
7474
7575
- name: Perform CodeQL Analysis
76-
uses: github/codeql-action/analyze@v2
76+
uses: github/codeql-action/analyze@v3
7777
with:
7878
category: "/language:${{matrix.language}}"

.github/workflows/devskim.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/flawfinder.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Flatbush for C++
22

3-
[![Ubuntu](https://github.com/chusitoo/flatbush/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/chusitoo/flatbush/actions/workflows/ubuntu.yml) [![Windows](https://github.com/chusitoo/flatbush/actions/workflows/windows.yml/badge.svg)](https://github.com/chusitoo/flatbush/actions/workflows/windows.yml) [![macOS](https://github.com/chusitoo/flatbush/actions/workflows/macos.yml/badge.svg)](https://github.com/chusitoo/flatbush/actions/workflows/macos.yml) [![CodeQL](https://github.com/chusitoo/flatbush/actions/workflows/codeql.yml/badge.svg)](https://github.com/chusitoo/flatbush/actions/workflows/codeql.yml) [![DevSkim](https://github.com/chusitoo/flatbush/actions/workflows/devskim.yml/badge.svg)](https://github.com/chusitoo/flatbush/actions/workflows/devskim.yml) [![flawfinder](https://github.com/chusitoo/flatbush/actions/workflows/flawfinder.yml/badge.svg)](https://github.com/chusitoo/flatbush/actions/workflows/flawfinder.yml)
3+
[![Ubuntu](https://github.com/chusitoo/flatbush/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/chusitoo/flatbush/actions/workflows/ubuntu.yml) [![Windows](https://github.com/chusitoo/flatbush/actions/workflows/windows.yml/badge.svg)](https://github.com/chusitoo/flatbush/actions/workflows/windows.yml) [![macOS](https://github.com/chusitoo/flatbush/actions/workflows/macos.yml/badge.svg)](https://github.com/chusitoo/flatbush/actions/workflows/macos.yml) [![CodeQL](https://github.com/chusitoo/flatbush/actions/workflows/codeql.yml/badge.svg)](https://github.com/chusitoo/flatbush/actions/workflows/codeql.yml)
44
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/chusitoo/flatbush)](https://github.com/chusitoo/flatbush/releases/latest) [![Conan Center](https://img.shields.io/conan/v/flatbush)](https://conan.io/center/recipes/flatbush) [![Vcpkg](https://img.shields.io/vcpkg/v/flatbush)](https://vcpkg.io/en/package/flatbush)
55

66
A C++ adaptation of the great Flatbush JS library which implements a packed Hilbert R-tree algorithm.

flatbush.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,6 @@ template <typename ArrayType>
474474
Flatbush<ArrayType>::Flatbush(uint32_t iNumItems, uint16_t iNodeSize) noexcept {
475475
iNodeSize = std::min(std::max(iNodeSize, gMinNodeSize), gMaxNodeSize);
476476
init(iNumItems, iNodeSize);
477-
478477
mData.resize(mData.capacity(), 0U);
479478
mData[0] = gValidityFlag;
480479
mData[1] = (gVersion << 4U) + detail::arrayTypeIndex<ArrayType>();
@@ -486,10 +485,10 @@ template <typename ArrayType>
486485
Flatbush<ArrayType>::Flatbush(const uint8_t* iData, size_t iSize) noexcept {
487486
const auto wNodeSize = *detail::bit_cast<const uint16_t*>(&iData[2]);
488487
const auto wNumItems = *detail::bit_cast<const uint32_t*>(&iData[4]);
489-
init(wNumItems, wNodeSize);
490-
491488
mData.insert(mData.begin(), iData, iData + iSize);
489+
init(wNumItems, wNodeSize);
492490
mPosition = mLevelBounds.empty() ? 0UL : mLevelBounds.back();
491+
493492
if (mPosition > 0UL) {
494493
mBounds = mBoxes[mPosition - 1UL];
495494
}
@@ -499,10 +498,10 @@ template <typename ArrayType>
499498
Flatbush<ArrayType>::Flatbush(std::vector<uint8_t>&& iData) noexcept {
500499
const auto wNodeSize = *detail::bit_cast<const uint16_t*>(&iData.at(2));
501500
const auto wNumItems = *detail::bit_cast<const uint32_t*>(&iData.at(4));
502-
init(wNumItems, wNodeSize);
503-
504501
mData = std::move(iData);
502+
init(wNumItems, wNodeSize);
505503
mPosition = mLevelBounds.empty() ? 0UL : mLevelBounds.back();
504+
506505
if (mPosition > 0UL) {
507506
mBounds = mBoxes[mPosition - 1UL];
508507
}

0 commit comments

Comments
 (0)