Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 4, 2025
1 parent 94b0fb0 commit 46ba4ca
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions platform/rust/include/wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,35 @@ using namespace mbgl;

// TileServerOptions constructor helpers
inline std::unique_ptr<TileServerOptions> TileServerOptions_new() {
return std::make_unique<TileServerOptions>();
return std::make_unique<TileServerOptions>();
}
inline std::unique_ptr<TileServerOptions> TileServerOptions_mapbox() {
return std::make_unique<TileServerOptions>(TileServerOptions::MapLibreConfiguration());
return std::make_unique<TileServerOptions>(TileServerOptions::MapLibreConfiguration());
}
inline std::unique_ptr<TileServerOptions> TileServerOptions_maplibre() {
return std::make_unique<TileServerOptions>(TileServerOptions::MapboxConfiguration());
return std::make_unique<TileServerOptions>(TileServerOptions::MapboxConfiguration());
}
inline std::unique_ptr<TileServerOptions> TileServerOptions_maptiler() {
return std::make_unique<TileServerOptions>(TileServerOptions::MapTilerConfiguration());
return std::make_unique<TileServerOptions>(TileServerOptions::MapTilerConfiguration());
}

// TileServerOptions getters for optional string fields
inline const int8_t * get_raw_str_ptr(const std::optional<std::string>& v) {
return (const int8_t *)(v.has_value() ? v->c_str() : nullptr);
inline const int8_t* get_raw_str_ptr(const std::optional<std::string>& v) {
return (const int8_t*)(v.has_value() ? v->c_str() : nullptr);
}
inline const int8_t * TileServerOptions_sourceVersionPrefix(const TileServerOptions& self) {
inline const int8_t* TileServerOptions_sourceVersionPrefix(const TileServerOptions& self) {
return get_raw_str_ptr(self.sourceVersionPrefix());
}
inline const int8_t * TileServerOptions_styleVersionPrefix(const TileServerOptions& self) {
inline const int8_t* TileServerOptions_styleVersionPrefix(const TileServerOptions& self) {
return get_raw_str_ptr(self.styleVersionPrefix());
}
inline const int8_t * TileServerOptions_spritesVersionPrefix(const TileServerOptions& self) {
inline const int8_t* TileServerOptions_spritesVersionPrefix(const TileServerOptions& self) {
return get_raw_str_ptr(self.spritesVersionPrefix());
}
inline const int8_t * TileServerOptions_glyphsVersionPrefix(const TileServerOptions& self) {
inline const int8_t* TileServerOptions_glyphsVersionPrefix(const TileServerOptions& self) {
return get_raw_str_ptr(self.glyphsVersionPrefix());
}
inline const int8_t * TileServerOptions_tileVersionPrefix(const TileServerOptions& self) {
inline const int8_t* TileServerOptions_tileVersionPrefix(const TileServerOptions& self) {
return get_raw_str_ptr(self.tileVersionPrefix());
}

Expand Down

0 comments on commit 46ba4ca

Please sign in to comment.