Permalink
Browse files

Mixed small fixes

  • Loading branch information...
1 parent 9f6fe92 commit 592049547b029aba4aaba8c784d4a7025d584910 @joto committed Aug 19, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 include/osmium/osm/object.hpp
  2. +2 −2 include/osmium/output/pbf.hpp
@@ -125,15 +125,15 @@ namespace Osmium {
* Get the timestamp when this object last changed.
* @return Timestamp as a string in ISO format (yyyy-mm-ddThh:mm:ssZ). Empty string if unset.
*/
- const std::string& timestamp_as_string() const {
+ const std::string timestamp_as_string() const {
return Osmium::Timestamp::to_iso(m_timestamp);
}
/**
* Get the timestamp until which this object is valid.
* @return Timestamp as a string in ISO format (yyyy-mm-ddThh:mm:ssZ). Empty string if unset.
*/
- const std::string& endtime_as_string() const {
+ const std::string endtime_as_string() const {
return Osmium::Timestamp::to_iso(m_endtime);
}
@@ -239,7 +239,7 @@ namespace Osmium {
* @param in String input.
* @return Number of bytes after compression.
*/
- size_t zlib_compress(std::string &in) {
+ size_t zlib_compress(const std::string& in) {
// zlib compression context
z_stream z;
@@ -291,7 +291,7 @@ namespace Osmium {
* @param type Type-string used in the BlobHeader.
* @param msg Protobuf-message.
*/
- void store_blob(const std::string &type, const google::protobuf::MessageLite &msg) {
+ void store_blob(const std::string& type, const google::protobuf::MessageLite& msg) {
// buffer to serialize the protobuf message to
std::string data;

0 comments on commit 5920495

Please sign in to comment.