Skip to content

Commit

Permalink
Remove copy ctor and use nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn authored and iglesias committed Apr 11, 2024
1 parent 22c8f4d commit f1a361a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions include/tapkee/projection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,12 @@ struct ProjectionImplementation
//! A pimpl wrapper for projecting function
struct ProjectingFunction
{
ProjectingFunction() : implementation(NULL)
ProjectingFunction() : implementation()
{
}
ProjectingFunction(ProjectionImplementation* impl) : implementation(impl)
{
}
ProjectingFunction(const ProjectingFunction& other) : implementation(other.implementation)
{
}
//! Projects provided vector to new space
//! @param vec vector to be projected
//! @return projected vector
Expand Down
2 changes: 1 addition & 1 deletion test/unit/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ TEST(Interface, NoDataPassThru)
// that's normal
ASSERT_EQ(0, output.embedding.rows());
// that's normal
ASSERT_EQ(NULL, output.projection.implementation.get());
ASSERT_EQ(nullptr, output.projection.implementation.get());
}

TEST(Interface, ParameterTargetDimension)
Expand Down

0 comments on commit f1a361a

Please sign in to comment.