From 0161215f42ccbfe45d1aef626f830d39486ef699 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 9 Jun 2007 12:10:12 +0000 Subject: Change some = "" to clear() and some == "" to .empty() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7263 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index b36b28a13..43ae14385 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -329,7 +329,7 @@ std::pair InspIRCd::GetInterfaceInstanceCount(Module* m) const std::string& InspIRCd::GetModuleName(Module* m) { - static std::string nothing = ""; /* Prevent compiler warning */ + static std::string nothing; /* Prevent compiler warning */ if (!this->GetModuleCount()) return nothing; @@ -403,7 +403,7 @@ void InspIRCd::SendMode(const char** parameters, int pcnt, userrec *user) void InspIRCd::DumpText(userrec* User, const std::string &LinePrefix, stringstream &TextStream) { std::string CompleteLine = LinePrefix; - std::string Word = ""; + std::string Word; while (TextStream >> Word) { if (CompleteLine.length() + Word.length() + 3 > 500) @@ -674,7 +674,7 @@ FileReader::FileReader(InspIRCd* Instance) : ServerInstance(Instance) std::string FileReader::Contents() { - std::string x = ""; + std::string x; for (file_cache::iterator a = this->fc.begin(); a != this->fc.end(); a++) { x.append(*a); -- cgit v1.2.3