summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-08 19:37:12 +0100
committerDavid Robillard <d@drobilla.net>2019-12-08 20:59:06 +0100
commit294665a85a9e6b299befd8ff6053f314578db2cf (patch)
tree13f2de8b494e0837477bf88da9839f6bfac3f002 /src
parente80baa41db344e2800ab54d638a4e9b69aa86374 (diff)
downloadingen-294665a85a9e6b299befd8ff6053f314578db2cf.tar.gz
ingen-294665a85a9e6b299befd8ff6053f314578db2cf.tar.bz2
ingen-294665a85a9e6b299befd8ff6053f314578db2cf.zip
Cleanup: Remove redundant string initialisations
Diffstat (limited to 'src')
-rw-r--r--src/Parser.cpp2
-rw-r--r--src/Serialiser.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Parser.cpp b/src/Parser.cpp
index 631d5cf4..5cc1dedd 100644
--- a/src/Parser.cpp
+++ b/src/Parser.cpp
@@ -71,8 +71,8 @@ Parser::find_resources(Sord::World& world,
for (Sord::Iter i = model.find(nil, rdf_type, type); !i.end(); ++i) {
const Sord::Node resource = i.get_subject();
const std::string resource_uri = resource.to_c_string();
- std::string file_path = "";
Sord::Iter f = model.find(resource, rdfs_seeAlso, nil);
+ std::string file_path;
if (!f.end()) {
uint8_t* p = serd_file_uri_parse(f.get_object().to_u_string(), nullptr);
file_path = (const char*)p;
diff --git a/src/Serialiser.cpp b/src/Serialiser.cpp
index a1a49533..7ab04f91 100644
--- a/src/Serialiser.cpp
+++ b/src/Serialiser.cpp
@@ -258,7 +258,7 @@ Serialiser::finish()
std::string
Serialiser::Impl::finish()
{
- std::string ret = "";
+ std::string ret;
if (_mode == Mode::TO_FILE) {
SerdStatus st = _model->write_to_file(_base_uri, SERD_TURTLE);
if (st) {