[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kross
From: John Layt <john () layt ! net>
Date: 2009-12-01 15:30:39
Message-ID: 1259681439.144887.6012.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1057140 by jlayt:
krazy fixes
M +2 -2 kjs/kjsscript.cpp
M +1 -1 modules/form.cpp
M +1 -1 qts/script.cpp
--- trunk/KDE/kdelibs/kross/kjs/kjsscript.cpp #1057139:1057140
@@ -277,8 +277,8 @@
}
QByteArray code = action()->code();
- if(code.startsWith("#!")) // remove optional shebang-line
- code.remove(0, code.indexOf('\n'));
+ if(code.startsWith("#!")) // krazy:exclude=strings
+ code.remove(0, code.indexOf('\n')); // remove optional shebang-line
QTextCodec *codec = QTextCodec::codecForLocale();
KJS::UString c = codec ? KJS::UString(codec->toUnicode(code)) : \
KJS::UString(code.data(), code.size());
--- trunk/KDE/kdelibs/kross/modules/form.cpp #1057139:1057140
@@ -184,7 +184,7 @@
} else {
//kDebug()<<d->filename<<d->filewidget->operationMode();
if ( d->filename.isEmpty() ) {
- // make KFileWidget create an url for us (including extension if neccessary)
+ // make KFileWidget create an url for us (including extension if necessary)
QObject::connect(d->filewidget, SIGNAL(accepted()), d->filewidget, \
SLOT(accept())); d->filewidget->slotOk();
QObject::disconnect(d->filewidget, SIGNAL(accepted()), d->filewidget, \
SLOT(accept()));
--- trunk/KDE/kdelibs/kross/qts/script.cpp #1057139:1057140
@@ -182,7 +182,7 @@
}
QString scriptCode = action()->code();
- if( scriptCode.startsWith("#!") ) // remove optional shebang-line
+ if( scriptCode.startsWith(QLatin1String("#!")) ) // remove optional shebang-line
scriptCode.remove(0, scriptCode.indexOf('\n'));
const QString fileName = action()->file().isEmpty() ? action()->name() : \
action()->file();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic