Remove constructor delegation from example
This requires gcc 4.7+ to work, Travis runs gcc 4.6.
--
MOS_MIGRATED_REVID=90818739
diff --git a/examples/cpp/hello-fail.cc b/examples/cpp/hello-fail.cc
index 5b561cb..5fb2292 100644
--- a/examples/cpp/hello-fail.cc
+++ b/examples/cpp/hello-fail.cc
@@ -11,7 +11,7 @@
* "test" has failed.
*/
int main(int argc, char** argv) {
- HelloLib lib;
+ HelloLib lib("Hello");
string thing = "barf";
if (argc > 1) {
thing = argv[1];
diff --git a/examples/cpp/hello-lib.cc b/examples/cpp/hello-lib.cc
index 8e40921..bceb268 100644
--- a/examples/cpp/hello-lib.cc
+++ b/examples/cpp/hello-lib.cc
@@ -8,9 +8,6 @@
namespace hello {
-HelloLib::HelloLib() : HelloLib("Hello") {
-}
-
HelloLib::HelloLib(const string& greeting) : greeting_(new string(greeting)) {
}
diff --git a/examples/cpp/hello-lib.h b/examples/cpp/hello-lib.h
index 555d177..e1fe88d 100644
--- a/examples/cpp/hello-lib.h
+++ b/examples/cpp/hello-lib.h
@@ -8,8 +8,6 @@
class HelloLib {
public:
- HelloLib();
-
explicit HelloLib(const std::string &greeting);
void greet(const std::string &thing);