summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Robert Quattlebaum <rquattle@google.com> 2017-01-30 18:45:52 -0800
committer Robert Quattlebaum <rquattle@google.com> 2017-01-30 18:45:52 -0800
commit48dd099b53c78eb2f0f53928115a0a2a58485dcc (patch)
tree4c46c03656872eb346209f24301c45e1b81eebde
parent6316f5b8df30422b247c2bfd1a805dcd4069b54e (diff)
libbinder: Fix for using default constructor on IpPrefix class
We were missing the default constructor on our internal union, which prevented the default constructor on the main class from being functional. This change fixes the problem by specifying a default constructor for the internal union. Change-Id: I6d296aa27b3a2b6d43aa7accccb9c25ccccfb0a6
-rw-r--r--include/binder/IpPrefix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/binder/IpPrefix.h b/include/binder/IpPrefix.h
index f8c80dcb4d..96ebaac437 100644
--- a/include/binder/IpPrefix.h
+++ b/include/binder/IpPrefix.h
@@ -71,6 +71,7 @@ public:
private:
union InternalUnion {
+ InternalUnion() = default;
InternalUnion(const struct in6_addr &addr):mIn6Addr(addr) { };
InternalUnion(const struct in_addr &addr):mInAddr(addr) { };
struct in6_addr mIn6Addr;