Skip to content

Commit

Permalink
use c++ copy_n to replace the c library memcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
gapry committed Nov 30, 2024
1 parent a88d1c1 commit 226b4c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vtkext/private/module/vtkF3DEXRReader.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <ImfIO.h>
#include <ImfRgbaFile.h>

#include <cstring>
#include <algorithm>
#include <sstream>
#include <thread>

Expand All @@ -32,7 +32,7 @@ class MemStream : public Imf::IStream
{
if (pos + n <= bufflen)
{
memcpy(c, buffer + pos, n);
std::copy_n(buffer + pos, n, c);
pos += n;
return true;
}
Expand Down

0 comments on commit 226b4c8

Please sign in to comment.