Author: hwright
Date: Mon Oct 4 20:53:42 2010
New Revision: 1004423
URL: http://svn.apache.org/viewvc?rev=1004423&view=rev
Log:
On the object-model branch:
Don't return a const string, since we're returning a copy to the caller,
anyway.
Suggested by: blair
* subversion/bindings/c++/include/Types.h
(Lock::getPath, Lock::getToken, Log::getOwner, Lock::getComment):
Return a mutable string, rather than a const one.
Modified:
subversion/branches/object-model/subversion/bindings/c++/include/Types.h
Modified:
subversion/branches/object-model/subversion/bindings/c++/include/Types.h
URL:
http://svn.apache.org/viewvc/subversion/branches/object-model/subversion/bindings/c%2B%2B/include/Types.h?rev=1004423&r1=1004422&r2=1004423&view=diff
==============================================================================
--- subversion/branches/object-model/subversion/bindings/c++/include/Types.h
(original)
+++ subversion/branches/object-model/subversion/bindings/c++/include/Types.h
Mon Oct 4 20:53:42 2010
@@ -187,25 +187,25 @@ class Lock
{
}
- inline const std::string
+ inline std::string
getPath() const
{
return std::string(m_lock->path);
}
- inline const std::string
+ inline std::string
getToken() const
{
return std::string(m_lock->token);
}
- inline const std::string
+ inline std::string
getOwner() const
{
return std::string(m_lock->owner);
}
- inline const std::string
+ inline std::string
getComment() const
{
return std::string(m_lock->comment);