We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 978a945 commit c4487abCopy full SHA for c4487ab
include/scratchcpp/asset.h
@@ -16,7 +16,7 @@ class AssetPrivate;
16
class LIBSCRATCHCPP_EXPORT Asset
17
{
18
public:
19
- Asset(std::string name, std::string id, std::string format);
+ Asset(const std::string &name, const std::string &id, const std::string &format);
20
21
const std::string &assetId() const;
22
src/scratch/asset.cpp
@@ -7,7 +7,7 @@
7
using namespace libscratchcpp;
8
9
/*! Constructs Asset. */
10
-Asset::Asset(std::string name, std::string id, std::string format) :
+Asset::Asset(const std::string &name, const std::string &id, const std::string &format) :
11
impl(spimpl::make_impl<AssetPrivate>(name, id, format))
12
13
}
0 commit comments