From d5ce6e4d2e2fa18cf50d9c8362e2cd9af41f62e6 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sat, 11 May 2013 17:43:51 -0700 Subject: [PATCH] Don't use 'front' on a string. --- src/cpp/ripple/HashedObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/ripple/HashedObject.cpp b/src/cpp/ripple/HashedObject.cpp index 8a2eb4eed..c3cf13958 100644 --- a/src/cpp/ripple/HashedObject.cpp +++ b/src/cpp/ripple/HashedObject.cpp @@ -114,7 +114,7 @@ HashedObject::pointer HashedObjectStore::retrieveLevelDB(const uint256& hash) return obj; } - const unsigned char* bufPtr = reinterpret_cast(&sData.front()); + const unsigned char* bufPtr = reinterpret_cast(&sData[0]); uint32 index = htonl(*reinterpret_cast(bufPtr)); int htype = bufPtr[8];