From a1ad19f0b7895e85ce7792594c8e37a6d3c92d6b Mon Sep 17 00:00:00 2001 From: that Date: Sat, 8 Nov 2014 01:18:44 +0100 Subject: mtp: get rid of string streams, reduces binary size a bit Change-Id: Iaa91eaac8269f02783c904d890641861ec747d11 --- mtp/btree.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mtp/btree.cpp') diff --git a/mtp/btree.cpp b/mtp/btree.cpp index e53afab98..b73789bd4 100755 --- a/mtp/btree.cpp +++ b/mtp/btree.cpp @@ -14,7 +14,6 @@ * limitations under the License. */ -#include #include #include "btree.hpp" #include "MtpDebug.h" @@ -60,7 +59,7 @@ Node* Tree::findEntryByName(std::string name) { } Node* Tree::findNode(MtpObjectHandle handle) { - std::map::iterator it = entries.find(handle); + std::map::iterator it = entries.find(handle); if (it != entries.end()) return it->second; return NULL; @@ -72,7 +71,7 @@ void Tree::getmtpids(MtpObjectHandleList* mtpids) { } void Tree::deleteNode(MtpObjectHandle handle) { - std::map::iterator it = entries.find(handle); + std::map::iterator it = entries.find(handle); if (it != entries.end()) { delete it->second; entries.erase(it); -- cgit v1.2.3