geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From echobr...@apache.org
Subject geode-native git commit: GEODE-3019: Fixed quickstarts that now use std::string
Date Fri, 28 Jul 2017 17:36:47 GMT
Repository: geode-native
Updated Branches:
  refs/heads/develop 54de76252 -> 5b1634a34


GEODE-3019: Fixed quickstarts that now use std::string


Project: http://git-wip-us.apache.org/repos/asf/geode-native/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode-native/commit/5b1634a3
Tree: http://git-wip-us.apache.org/repos/asf/geode-native/tree/5b1634a3
Diff: http://git-wip-us.apache.org/repos/asf/geode-native/diff/5b1634a3

Branch: refs/heads/develop
Commit: 5b1634a349e3a1e583da24a2637edc3918a9593a
Parents: 54de762
Author: Ernest Burghardt <eburghardt@pivotal.io>
Authored: Fri Jul 28 11:32:52 2017 -0600
Committer: Ernest Burghardt <eburghardt@pivotal.io>
Committed: Fri Jul 28 11:34:23 2017 -0600

----------------------------------------------------------------------
 src/quickstart/cpp/PdxRemoteQuery.cpp  | 4 ++--
 src/quickstart/cpp/PdxSerializer.cpp   | 4 ++--
 src/quickstart/cpp/PoolRemoteQuery.cpp | 4 ++--
 src/quickstart/cpp/RemoteQuery.cpp     | 8 ++++----
 4 files changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode-native/blob/5b1634a3/src/quickstart/cpp/PdxRemoteQuery.cpp
----------------------------------------------------------------------
diff --git a/src/quickstart/cpp/PdxRemoteQuery.cpp b/src/quickstart/cpp/PdxRemoteQuery.cpp
index 70038a9..40e34b2 100644
--- a/src/quickstart/cpp/PdxRemoteQuery.cpp
+++ b/src/quickstart/cpp/PdxRemoteQuery.cpp
@@ -107,9 +107,9 @@ int main(int argc, char** argv) {
       rowCount++;
       Struct* psi = dynamic_cast<Struct*>(iter.next().get());
       LOGINFO("Row %d Column 1 is named %s, value is %s", rowCount,
-              psi->getFieldName(0), (*psi)[0]->toString()->asChar());
+              psi->getFieldName(0).c_str(), (*psi)[0]->toString()->asChar());
       LOGINFO("Row %d Column 2 is named %s, value is %S", rowCount,
-              psi->getFieldName(1), (*psi)[1]->toString()->asWChar());
+              psi->getFieldName(1).c_str(), (*psi)[1]->toString()->asWChar());
     }
 
     // Execute a Region Shortcut Query (convenience method).

http://git-wip-us.apache.org/repos/asf/geode-native/blob/5b1634a3/src/quickstart/cpp/PdxSerializer.cpp
----------------------------------------------------------------------
diff --git a/src/quickstart/cpp/PdxSerializer.cpp b/src/quickstart/cpp/PdxSerializer.cpp
index b394c28..c0d41a1 100644
--- a/src/quickstart/cpp/PdxSerializer.cpp
+++ b/src/quickstart/cpp/PdxSerializer.cpp
@@ -207,9 +207,9 @@ int main(int argc, char** argv) {
       rowCount++;
       Struct* psi = dynamic_cast<Struct*>(iter.next().get());
       LOGINFO("Row %d Column 1 is named %s, value is %S", rowCount,
-              psi->getFieldName(0), (*psi)[0]->toString()->asWChar());
+              psi->getFieldName(0).c_str(), (*psi)[0]->toString()->asWChar());
       LOGINFO("Row %d Column 2 is named %s, value is %s", rowCount,
-              psi->getFieldName(1), (*psi)[1]->toString()->asChar());
+              psi->getFieldName(1).c_str(), (*psi)[1]->toString()->asChar());
     }
 
     // Execute a Region Shortcut Query (convenience method).

http://git-wip-us.apache.org/repos/asf/geode-native/blob/5b1634a3/src/quickstart/cpp/PoolRemoteQuery.cpp
----------------------------------------------------------------------
diff --git a/src/quickstart/cpp/PoolRemoteQuery.cpp b/src/quickstart/cpp/PoolRemoteQuery.cpp
index 57c7250..4e98dbd 100644
--- a/src/quickstart/cpp/PoolRemoteQuery.cpp
+++ b/src/quickstart/cpp/PoolRemoteQuery.cpp
@@ -107,9 +107,9 @@ int main(int argc, char** argv) {
       rowCount++;
       Struct* psi = dynamic_cast<Struct*>(iter.next().get());
       LOGINFO("Row %d Column 1 is named %s, value is %s", rowCount,
-              psi->getFieldName(0), (*psi)[0]->toString()->asChar());
+              psi->getFieldName(0).c_str(), (*psi)[0]->toString()->asChar());
       LOGINFO("Row %d Column 2 is named %s, value is %s", rowCount,
-              psi->getFieldName(1), (*psi)[1]->toString()->asChar());
+              psi->getFieldName(1).c_str(), (*psi)[1]->toString()->asChar());
     }
 
     // Execute a Region Shortcut Query (convenience method).

http://git-wip-us.apache.org/repos/asf/geode-native/blob/5b1634a3/src/quickstart/cpp/RemoteQuery.cpp
----------------------------------------------------------------------
diff --git a/src/quickstart/cpp/RemoteQuery.cpp b/src/quickstart/cpp/RemoteQuery.cpp
index ceed757..9bfcf47 100644
--- a/src/quickstart/cpp/RemoteQuery.cpp
+++ b/src/quickstart/cpp/RemoteQuery.cpp
@@ -104,9 +104,9 @@ int main(int argc, char** argv) {
       rowCount++;
       Struct* psi = dynamic_cast<Struct*>(iter.next().get());
       LOGINFO("Row %d Column 1 is named %s, value is %s", rowCount,
-              psi->getFieldName(0), (*psi)[0]->toString()->asChar());
+              psi->getFieldName(0).c_str(), (*psi)[0]->toString()->asChar());
       LOGINFO("Row %d Column 2 is named %s, value is %s", rowCount,
-              psi->getFieldName(1), (*psi)[1]->toString()->asChar());
+              psi->getFieldName(1).c_str(), (*psi)[1]->toString()->asChar());
     }
 
     // Execute a Region Shortcut Query (convenience method).
@@ -147,9 +147,9 @@ int main(int argc, char** argv) {
       rowCount++;
       Struct* pst = dynamic_cast<Struct*>(itr.next().get());
       LOGINFO("Row %d Column 1 is named %s, value is %s", rowCount,
-              pst->getFieldName(0), (*pst)[0]->toString()->asChar());
+              pst->getFieldName(0).c_str(), (*pst)[0]->toString()->asChar());
       LOGINFO("Row %d Column 2 is named %s, value is %s", rowCount,
-              pst->getFieldName(1), (*pst)[1]->toString()->asChar());
+              pst->getFieldName(1).c_str(), (*pst)[1]->toString()->asChar());
     }
 
     // Close the Geode Cache.


Mime
View raw message