Format like smack-a-brother, and write comments as sentences
Four-space indents, braces on their own lines, and one-statement bodies without braces. Semicolons in comments became full stops. Designated initializers may leave fields out without a warning.
This commit is contained in:
1 parent
40f6b554b5
commit
7afdf709c3
176 files changed
+20500
-19048
No files matched your search
+6
-6
@@ -6,16 +6,16 @@
|
||||
#include "audio_data.h"
|
||||
#include "image.h"
|
||||
|
||||
// Immutable images and sounds keyed by content hash. Undo history records keys, never pixels or bytes, and
|
||||
// entries live until the document closes so any step can be restored.
|
||||
class AssetStore
|
||||
{
|
||||
// Immutable images and sounds keyed by content hash. Undo history records keys, never pixels or bytes, and
|
||||
// entries live until the document closes so any step can be restored.
|
||||
class AssetStore
|
||||
{
|
||||
std::unordered_map<std::uint64_t, Image> images;
|
||||
std::unordered_map<std::uint64_t, AudioData> audio;
|
||||
|
||||
public:
|
||||
public:
|
||||
std::uint64_t image_add(Image);
|
||||
std::uint64_t audio_add(AudioData);
|
||||
const Image* image_get(std::uint64_t) const;
|
||||
const AudioData* audio_get(std::uint64_t) const;
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user