[
https://issues.apache.org/jira/browse/GEODE-3288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16271308#comment-16271308
]
ASF GitHub Bot commented on GEODE-3288:
---------------------------------------
pivotal-jbarrett commented on a change in pull request #160: GEODE-3288:
Converts char* to std::string on public API.
URL: https://github.com/apache/geode-native/pull/160#discussion_r153875431
##########
File path: cppcache/integration-test/QueryStrings.hpp
##########
@@ -57,14 +57,11 @@ enum queryCategory {
class QueryStrings {
public:
- QueryStrings(queryCategory pcategory, const char* pquery,
- bool pisLargeResultset = false) {
- size_t querylen = static_cast<int>(strlen(pquery));
- if (querylen < MAX_QRY_LENGTH) memcpy(_query, pquery, querylen);
- memset(&_query[querylen], '\0', 1);
Review comment:
Yes!
----------------------------------------------------------------
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:
[email protected]
> Replace char* with std::string
> ------------------------------
>
> Key: GEODE-3288
> URL: https://issues.apache.org/jira/browse/GEODE-3288
> Project: Geode
> Issue Type: Improvement
> Components: native client
> Reporter: Ernest Burghardt
>
> In all public API headers
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)