Skip to content

Commit

Permalink
Fixed stupid copy&paste error (many thanks to pilsnerish for pointing…
Browse files Browse the repository at this point in the history
… this out)
  • Loading branch information
mauer committed Oct 10, 2023
1 parent 9db2e6f commit 35702c7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 29 deletions.
21 changes: 0 additions & 21 deletions src/common/text_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,6 @@ void text_logger::set_log_info(bool in_mode)
}


/**
* Return if info messages should be logged
*/
bool text_logger::log_info() const
{
return m_log_info;
}


/**
* Set the max message size
*/
Expand All @@ -110,18 +101,6 @@ void text_logger::set_max_size(int in_size)
}


/**
* Return the max message size
*/
int text_logger::max_size() const
{
std::mutex mutex;
std::lock_guard<std::mutex> lock(mutex);

return m_max_size;
}


/**
* Clear all messages
*/
Expand Down
3 changes: 0 additions & 3 deletions src/common/text_logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ class text_logger {
[[nodiscard]] bool debug_mode() const;

void set_log_info(bool in_mode);
[[nodiscard]] bool log_info() const;

void set_max_size(int in_size);
[[nodiscard]] int max_size() const;

void clear();
size_t count();
Expand Down
6 changes: 3 additions & 3 deletions src/env/xplane/env_xplane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ std::filesystem::path env_xplane::profiles_path()
*/
std::filesystem::path env_xplane::includes_path()
{
if (m_profiles_path.empty())
m_profiles_path = preferences_path().string() + INCLUDES_DIRECTORY_NAME + "/";
if (m_includes_path.empty())
m_includes_path = preferences_path().string() + INCLUDES_DIRECTORY_NAME + "/";

return m_profiles_path;
return m_includes_path;
}


Expand Down
1 change: 1 addition & 0 deletions src/env/xplane/env_xplane.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class env_xplane : public environment {
std::filesystem::path m_plugin_path;
std::filesystem::path m_preferences_path;
std::filesystem::path m_profiles_path;
std::filesystem::path m_includes_path;

std::unique_ptr<cmd_xplane> m_cmd;
std::unique_ptr<data_xplane> m_drf;
Expand Down
4 changes: 2 additions & 2 deletions src/profile/map/map_init/map_init_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//---------------------------------------------------------------------------------------------------------------------

#ifndef XMC_MAP_INIT_LIST_H
#define XM_CMAP_INIT_LIST_H
#define XMC_MAP_INIT_LIST_H

// Standard
#include <memory>
Expand Down Expand Up @@ -47,4 +47,4 @@ class map_init_list {

} // Namespace xmidictrl

#endif // MAP_INIT_LIST_H
#endif // XMC_MAP_INIT_LIST_H

0 comments on commit 35702c7

Please sign in to comment.