code style: Don't use std:: inside .cpp files.
diff --git a/ndn-cpp/encoding/binary-xml-wire-format.cpp b/ndn-cpp/encoding/binary-xml-wire-format.cpp
index 9bd6759..b1f4007 100644
--- a/ndn-cpp/encoding/binary-xml-wire-format.cpp
+++ b/ndn-cpp/encoding/binary-xml-wire-format.cpp
@@ -41,7 +41,7 @@
BinaryXmlEncoder encoder;
ndn_Error error;
if ((error = ndn_encodeBinaryXmlInterest(&interestStruct, &encoder)))
- throw std::runtime_error(ndn_getErrorString(error));
+ throw runtime_error(ndn_getErrorString(error));
return encoder.getOutput();
}
@@ -59,7 +59,7 @@
BinaryXmlDecoder decoder(input, inputLength);
ndn_Error error;
if ((error = ndn_decodeBinaryXmlInterest(&interestStruct, &decoder)))
- throw std::runtime_error(ndn_getErrorString(error));
+ throw runtime_error(ndn_getErrorString(error));
interest.set(interestStruct);
}
@@ -78,7 +78,7 @@
BinaryXmlEncoder encoder;
ndn_Error error;
if ((error = ndn_encodeBinaryXmlData(&dataStruct, signedPortionBeginOffset, signedPortionEndOffset, &encoder)))
- throw std::runtime_error(ndn_getErrorString(error));
+ throw runtime_error(ndn_getErrorString(error));
return encoder.getOutput();
}
@@ -97,7 +97,7 @@
BinaryXmlDecoder decoder(input, inputLength);
ndn_Error error;
if ((error = ndn_decodeBinaryXmlData(&dataStruct, signedPortionBeginOffset, signedPortionEndOffset, &decoder)))
- throw std::runtime_error(ndn_getErrorString(error));
+ throw runtime_error(ndn_getErrorString(error));
data.set(dataStruct);
}
@@ -114,7 +114,7 @@
BinaryXmlEncoder encoder;
ndn_Error error;
if ((error = ndn_encodeBinaryXmlForwardingEntry(&forwardingEntryStruct, &encoder)))
- throw std::runtime_error(ndn_getErrorString(error));
+ throw runtime_error(ndn_getErrorString(error));
return encoder.getOutput();
}
@@ -130,7 +130,7 @@
BinaryXmlDecoder decoder(input, inputLength);
ndn_Error error;
if ((error = ndn_decodeBinaryXmlForwardingEntry(&forwardingEntryStruct, &decoder)))
- throw std::runtime_error(ndn_getErrorString(error));
+ throw runtime_error(ndn_getErrorString(error));
forwardingEntry.set(forwardingEntryStruct);
}