-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workaround crash using android ndk>22
The crash occurs in exception handling at osmscout::FileScanner::Close() line 267: >> throw IOException(filename,"Cannot close file","File already closed"); So workaround calling FileScanner::CloseFailsafe(), which is noexcept
- Loading branch information
Showing
8 changed files
with
32 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/libosmscout/src/osmscout/db/LocationIndex.cpp b/libosmscout/src/osmscout/db/LocationIndex.cpp | ||
index 991eead42..d34241f43 100644 | ||
--- a/libosmscout/src/osmscout/db/LocationIndex.cpp | ||
+++ b/libosmscout/src/osmscout/db/LocationIndex.cpp | ||
@@ -133,12 +133,7 @@ namespace osmscout { | ||
|
||
void LocationIndex::FileScannerPool::Destroy(FileScanner* o) noexcept | ||
{ | ||
- try{ | ||
- o->Close(); | ||
- } catch (const IOException& e) { | ||
- log.Error() << e.GetDescription(); | ||
- o->CloseFailsafe(); | ||
- } | ||
+ o->CloseFailsafe(); | ||
delete o; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
diff --git a/libosmscout/include/osmscout/feature/ChargingStationFeature.h b/libosmscout/include/osmscout/feature/ChargingStationFeature.h | ||
index be79544e6..7e376ed2c 100644 | ||
index be79544e6..48c2cb10d 100644 | ||
--- a/libosmscout/include/osmscout/feature/ChargingStationFeature.h | ||
+++ b/libosmscout/include/osmscout/feature/ChargingStationFeature.h | ||
@@ -51,7 +51,7 @@ namespace osmscout { | ||
@@ -51,7 +51,11 @@ namespace osmscout { | ||
uint8_t capacity; | ||
std::string output; | ||
|
||
- std::strong_ordering operator<=>(const Socket& other) const = default; | ||
+ bool operator==(const Socket& other) const = default; | ||
+ bool operator==(const Socket& other) const { | ||
+ return this->type == other.type && | ||
+ this->capacity == other.capacity && | ||
+ this->output == other.output; | ||
+ } | ||
}; | ||
|
||
private: |