mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#include "platform/products.hpp"
|
||||
#include "platform/platform.hpp"
|
||||
|
||||
#include "base/logging.hpp"
|
||||
#include "base/assert.hpp"
|
||||
#include "base/logging.hpp"
|
||||
#include "base/string_utils.hpp"
|
||||
|
||||
#include "defines.hpp"
|
||||
@@ -11,7 +11,8 @@
|
||||
|
||||
#include "cppjansson/cppjansson.hpp"
|
||||
|
||||
namespace products {
|
||||
namespace products
|
||||
{
|
||||
|
||||
char const kPlacePagePrompt[] = "placePagePrompt";
|
||||
char const kProducts[] = "products";
|
||||
@@ -78,7 +79,7 @@ void ProductsSettings::Update(std::string const & jsonStr)
|
||||
|
||||
std::optional<ProductsConfig> ProductsConfig::Parse(std::string const & jsonStr)
|
||||
{
|
||||
const base::Json root(jsonStr.c_str());
|
||||
base::Json const root(jsonStr.c_str());
|
||||
auto const json = root.get();
|
||||
auto const productsObj = json_object_get(json, kProducts);
|
||||
if (!json_is_object(json) || !productsObj || !json_is_array(productsObj))
|
||||
@@ -115,4 +116,4 @@ std::optional<ProductsConfig> ProductsConfig::Parse(std::string const & jsonStr)
|
||||
return config;
|
||||
}
|
||||
|
||||
} // namespace products
|
||||
} // namespace products
|
||||
|
||||
Reference in New Issue
Block a user