summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0ea0107)
raw | patch | inline | side by side (parent: 0ea0107)
author | mental <mental@users.sourceforge.net> | |
Sun, 18 Mar 2007 18:39:13 +0000 (18:39 +0000) | ||
committer | mental <mental@users.sourceforge.net> | |
Sun, 18 Mar 2007 18:39:13 +0000 (18:39 +0000) |
(Falk Hueffner)
diff --git a/src/deptool.cpp b/src/deptool.cpp
index ffb5339819ecf198ee45419887994b9317b8038c..45a01c4e7517e5e619dd9376fc605c700870d119 100644 (file)
--- a/src/deptool.cpp
+++ b/src/deptool.cpp
if (fullname.size() < 2)
return;
- unsigned int pos = fullname.find_last_of('/');
+ String::size_type pos = fullname.find_last_of('/');
if (pos != fullname.npos && pos<fullname.size()-1)
{
path = fullname.substr(0, pos);
{
if (fname.size() < 2)
return "";
- unsigned int pos = fname.find_last_of('.');
+ String::size_type pos = fname.find_last_of('.');
if (pos == fname.npos)
return "";
pos++;
index e2933519320ee685448d6d1a802b4a0f4bbb0d29..900b83cc1f18c3e1905a8e60e82c188388a46245 100644 (file)
--- a/src/dialogs/swatches.cpp
+++ b/src/dialogs/swatches.cpp
static bool getBlock( std::string& dst, guchar ch, std::string const str )
{
bool good = false;
- size_t pos = str.find(ch);
+ std::string::size_type pos = str.find(ch);
if ( pos != std::string::npos )
{
- size_t pos2 = str.find( '(', pos );
+ std::string::size_type pos2 = str.find( '(', pos );
if ( pos2 != std::string::npos ) {
- size_t endPos = str.find( ')', pos2 );
+ std::string::size_type endPos = str.find( ')', pos2 );
if ( endPos != std::string::npos ) {
dst = str.substr( pos2 + 1, (endPos - pos2 - 1) );
good = true;
static bool popVal( guint64& numVal, std::string& str )
{
bool good = false;
- size_t endPos = str.find(',');
+ std::string::size_type endPos = str.find(',');
if ( endPos == std::string::npos ) {
endPos = str.length();
}
{
for ( std::vector<ColorItem*>::iterator it = onceMore->_colors.begin(); it != onceMore->_colors.end(); ++it )
{
- size_t pos = (*it)->def.descr.find("*{");
+ std::string::size_type pos = (*it)->def.descr.find("*{");
if ( pos != std::string::npos )
{
std::string subby = (*it)->def.descr.substr( pos + 2 );
- size_t endPos = subby.find("}*");
+ std::string::size_type endPos = subby.find("}*");
if ( endPos != std::string::npos )
{
subby.erase( endPos );
diff --git a/src/dom/uri.cpp b/src/dom/uri.cpp
index 6db803134cd15c6f94939fcc5b3e9fa25756c5d7..b56b5c2177a52f5909dcd5ffe38f91d999777093 100644 (file)
--- a/src/dom/uri.cpp
+++ b/src/dom/uri.cpp
}
else
{
- unsigned int pos = path.find_last_of('/');
+ std::string::size_type pos = path.find_last_of('/');
if (pos != path.npos)
{
DOMString tpath = path.substr(0, pos+1);
}
while (pos < path.size())
{
- unsigned int pos2 = path.find('/', pos);
+ std::string::size_type pos2 = path.find('/', pos);
if (pos2==path.npos)
{
DOMString seg = path.substr(pos);
index 003f1fc64ebe809d04b4e5465c6650ac249042da..af70a04f0f188fcbaf73dfd5f0521f00f68a7850 100644 (file)
The default search path is the current directory */
path = G_SEARCHPATH_SEPARATOR_S;
- unsigned int pos = 0;
- unsigned int pos2 = 0;
+ std::string::size_type pos = 0;
+ std::string::size_type pos2 = 0;
while ( pos < path.size() ) {
Glib::ustring localPath;
index a19d03a31ae43fd4b924542481c440c683d72518..f67800ca56db66b11f85ae68f2b108aed4f16d36 100644 (file)
{
Glib::ustring ext;
- unsigned int pos = fname.rfind('.');
+ std::string::size_type pos = fname.rfind('.');
if (pos == fname.npos)
{
ext = "";
diff --git a/src/layer-manager.cpp b/src/layer-manager.cpp
index 4d92d37c846edf4030e495f9f0bdc24884b1222c..e6a34852d9dc6c2baf7bda49d03fe96b96eee526 100644 (file)
--- a/src/layer-manager.cpp
+++ b/src/layer-manager.cpp
Glib::ustring base(incoming);
guint startNum = 1;
- size_t pos = base.rfind('#');
+ Glib::ustring::size_type pos = base.rfind('#');
if ( pos != Glib::ustring::npos ) {
gchar* numpart = g_strdup(base.substr(pos+1).c_str());
if ( numpart ) {
index 0cdd49477ef32b9cf9474333e3ac8c541d698080..cd5730a5c884188dfbe1d63401cab30ad9f38d55 100644 (file)
try {
bool appendExtension = true;
Glib::ustring utf8Name = Glib::filename_to_utf8( myFilename );
- size_t pos = utf8Name.rfind('.');
+ Glib::ustring::size_type pos = utf8Name.rfind('.');
if ( pos != Glib::ustring::npos ) {
Glib::ustring trail = utf8Name.substr( pos );
Glib::ustring foldedTrail = trail.casefold();