## Summary Relative includes can hide inappropriate dependency relationships. In this case, I found that lib/KOReaderSync/KOReaderCredentialStore.cpp was dependent on src/JsonSettingsIO.h -- a lib -> app dependency, the opposite direction dependencies should flow in this project. This change replaces all relative includes with root-relative includes, and corrects the KOReaderCredentialStore dependency by moving its JSON settings serialization local to the KOReaderSync library. --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**PARTIALLY**_
9 lines
251 B
C++
9 lines
251 B
C++
#pragma once
|
|
|
|
class KOReaderCredentialStore;
|
|
|
|
namespace KOReaderJsonIO {
|
|
bool save(const KOReaderCredentialStore& store, const char* path);
|
|
bool load(KOReaderCredentialStore& store, const char* json, bool* needsResave);
|
|
} // namespace KOReaderJsonIO
|