Skip to content

Commit

Permalink
Applied clang-format.
Browse files Browse the repository at this point in the history
  • Loading branch information
jellespijker authored and github-actions[bot] committed Nov 21, 2023
1 parent 7af9a1a commit 2ad7536
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@

#ifdef SENTRY_URL
#include <filesystem>
#include <fmt/format.h>
#include <sentry.h>

#include <fmt/format.h>
#endif

#include <string>
Expand Down Expand Up @@ -52,11 +53,11 @@ int main(int argc, char** argv)
// This is also the default-path. For further information and recommendations:
// https://docs.sentry.io/platforms/native/configuration/options/#database-path
#if defined(__linux__)
const auto config_path = std::filesystem::path(std::getenv("HOME")).append( "/.local/share/cura/.sentry-native" );
const auto config_path = std::filesystem::path(std::getenv("HOME")).append("/.local/share/cura/.sentry-native");
#elif defined(__APPLE__) && defined(__MACH__)
const auto config_path = std::filesystem::path(std::getenv("HOME")).append( "/Library/Application Support/cura/.sentry-native" );
const auto config_path = std::filesystem::path(std::getenv("HOME")).append("/Library/Application Support/cura/.sentry-native");
#elif defined(_WIN64)
const auto config_path = std::filesystem::path(std::getenv("APPDATA")).append( "/cura/.sentry-native" );
const auto config_path = std::filesystem::path(std::getenv("APPDATA")).append("/cura/.sentry-native");
#endif
sentry_options_set_database_path(options, config_path.c_str());
sentry_options_set_release(options, fmt::format("curaengine@{}", CURA_ENGINE_VERSION).c_str());
Expand Down

0 comments on commit 2ad7536

Please sign in to comment.