geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (GEODE-3288) Replace char* with std::string
Date Thu, 07 Dec 2017 16:09:01 GMT


ASF GitHub Bot commented on GEODE-3288:

dgkimura commented on a change in pull request #165: GEODE-3288: Converts CacheableString
to std::string.

 File path: cppcache/src/PdxInstanceFactoryImpl.cpp
 @@ -139,14 +139,23 @@ std::shared_ptr<PdxInstanceFactory> PdxInstanceFactoryImpl::writeWideString(
   return shared_from_this();
 std::shared_ptr<PdxInstanceFactory> PdxInstanceFactoryImpl::writeString(
-    const std::string& fieldName, const char* value) {
+    const std::string& fieldName, const std::string& value) {
   m_pdxType->addVariableLengthTypeField(fieldName, "string",
   auto cacheableObject = CacheableString::create(value);
   m_FieldVsValues.emplace(fieldName, cacheableObject);
   return shared_from_this();
+std::shared_ptr<PdxInstanceFactory> PdxInstanceFactoryImpl::writeString(
 Review comment:
   This logic looks almost duplicated.  Again, if universal ref and std::forward work then
maybe we can consolidate the logic to one place.

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Replace char* with std::string
> ------------------------------
>                 Key: GEODE-3288
>                 URL:
>             Project: Geode
>          Issue Type: Improvement
>          Components: native client
>            Reporter: Ernest Burghardt
> In all public API headers

This message was sent by Atlassian JIRA

View raw message