Skip to content

Commit

Permalink
Pass smart pointers by references
Browse files Browse the repository at this point in the history
  • Loading branch information
msg7086 committed Jun 30, 2019
1 parent 9dfc7a0 commit 1e3d529
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/avisynth/filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class f3kdb_avisynth : public GenericVideoFilter {
bool _mt;
volatile mt_info* _mt_info;

void process_plane(int n, PVideoFrame src, PVideoFrame dst, unsigned char *dstp, int plane, IScriptEnvironment* env);
void process_plane(int n, const PVideoFrame& src, const PVideoFrame& dst, unsigned char *dstp, int plane, IScriptEnvironment* env);

public:
void mt_proc(void);
Expand Down
2 changes: 1 addition & 1 deletion src/avisynth/filter_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ f3kdb_avisynth::~f3kdb_avisynth()
_core = NULL;
}

void f3kdb_avisynth::process_plane(int n, PVideoFrame src, PVideoFrame dst, unsigned char *dstp, int plane, IScriptEnvironment* env)
void f3kdb_avisynth::process_plane(int n, const PVideoFrame& src, const PVideoFrame& dst, unsigned char *dstp, int plane, IScriptEnvironment* env)
{
int f3kdb_plane;
switch (plane & 7)
Expand Down

0 comments on commit 1e3d529

Please sign in to comment.