Skip to content

Commit

Permalink
cosmetic: move all variable declarations to top of class
Browse files Browse the repository at this point in the history
To aid readability by making it easy to see all class-local
variables and their types and visibility.
  • Loading branch information
TheOneric committed Apr 2, 2022
1 parent 1e9d5cd commit 5d3b0eb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/SubtitleOctopus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ typedef struct RenderBlendResult {
} RenderBlendResult;

class SubtitleOctopus {
private:
ReusableBuffer2D m_blend;
RenderBlendResult m_blendResult;
public:
ASS_Library* ass_library;
ASS_Renderer* ass_renderer;
Expand Down Expand Up @@ -362,10 +365,6 @@ class SubtitleOctopus {
m_blendResult.image = (unsigned char*)result;
return &m_blendResult;
}

private:
ReusableBuffer2D m_blend;
RenderBlendResult m_blendResult;
};

int main(int argc, char *argv[]) { return 0; }
Expand Down

0 comments on commit 5d3b0eb

Please sign in to comment.