Fix compilation, including the missing boosts header,

avoid signed/unsigned comparison.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9123 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2004-10-25 08:25:28 +00:00
parent 0cfc9133bb
commit 741948e903
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-10-25 José Matos <jamatos@lyx.org>
* sgml.C (escapeString): import the require boosts header file for
tie, and avoid a signed unsigned comparison.
2004-10-25 José Matos <jamatos@lyx.org>
* sgml.h: add #include <string>

View File

@ -23,6 +23,7 @@
#include "support/std_ostream.h"
#include "support/tostr.h"
#include <boost/tuple/tuple.hpp>
#include <sstream>
using lyx::support::subst;
@ -100,7 +101,7 @@ string escapeString(string const & raw)
{
ostringstream bin;
for(int i=0; i < raw.size(); ++i) {
for(unsigned int i=0; i < raw.size(); ++i) {
bool ws;
string str;
boost::tie(ws, str) = sgml::escapeChar(raw[i]);