diff options
author | Brad King <brad.king@kitware.com> | 2002-06-19 19:21:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-06-19 19:21:49 (GMT) |
commit | 07d35e662dc76fa7702d54f4a9b3ced3dac3c969 (patch) | |
tree | 9cde169f2d59b54ac0a779e0ef55d6260452f84c /Source/cmBorlandMakefileGenerator.cxx | |
parent | 27a2cad0fcaa0c3733c0adf532d59df7ba3cde29 (diff) | |
download | CMake-07d35e662dc76fa7702d54f4a9b3ced3dac3c969.zip CMake-07d35e662dc76fa7702d54f4a9b3ced3dac3c969.tar.gz CMake-07d35e662dc76fa7702d54f4a9b3ced3dac3c969.tar.bz2 |
ENH: Added cmStringStream class to wrap std::stringstream or std::strstream depending on the platform. The interface is that of std::stringstream, so no "ends" or "rdbuf()->freeze(0)" lines are needed.
Diffstat (limited to 'Source/cmBorlandMakefileGenerator.cxx')
-rw-r--r-- | Source/cmBorlandMakefileGenerator.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/cmBorlandMakefileGenerator.cxx b/Source/cmBorlandMakefileGenerator.cxx index b064364..f996008 100644 --- a/Source/cmBorlandMakefileGenerator.cxx +++ b/Source/cmBorlandMakefileGenerator.cxx @@ -251,12 +251,10 @@ void cmBorlandMakefileGenerator::OutputSharedLibraryRule(std::ostream& fout, command += "-e"; command += target; command += " "; - std::strstream linklibs; + cmStringStream linklibs; this->OutputLinkLibraries(linklibs, name, t); - linklibs << std::ends; // then the linker options -L and libraries (any other order will fail!) command += linklibs.str(); - delete [] linklibs.str(); // then list of object files command += " $(" + this->CreateMakeVariable(name, "_SRC_OBJS") + ") "; std::string command2 = "implib -w "; @@ -353,11 +351,9 @@ void cmBorlandMakefileGenerator::OutputExecutableRule(std::ostream& fout, { command += " -tWC "; } - std::strstream linklibs; + cmStringStream linklibs; this->OutputLinkLibraries(linklibs, 0, t); - linklibs << std::ends; command += linklibs.str(); - delete [] linklibs.str(); command += " $(" + this->CreateMakeVariable(name, "_SRC_OBJS") + ")"; std::string comment = "rule to build executable: "; |