mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-23 09:28:45 +00:00
Changed: #878 Fix typos in comments/code
This commit is contained in:
parent
51d632b9ec
commit
0a235b7353
5 changed files with 47 additions and 50 deletions
|
@ -377,7 +377,6 @@ void CTileBank::makeAllPathRelative ()
|
|||
|
||||
|
||||
// ***************************************************************************
|
||||
// Moi aussi je le parie (Yoyo).
|
||||
void CTileBank::makeAllExtensionDDS ()
|
||||
{
|
||||
// For all tiles
|
||||
|
|
|
@ -21,8 +21,6 @@
|
|||
#include "nel/misc/bsphere.h"
|
||||
#include "nel/misc/matrix.h"
|
||||
|
||||
|
||||
|
||||
namespace NLMISC {
|
||||
|
||||
|
||||
|
|
|
@ -15,42 +15,42 @@ GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
*/
|
||||
|
||||
#include "log_plugin.h"
|
||||
#include "log_settings_page.h"
|
||||
|
||||
// Qt includes
|
||||
#include <QtCore/QObject>
|
||||
#include <QtGui/QMessageBox>
|
||||
#include <QtGui/QMainWindow>
|
||||
#include <QtGui/QMenu>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QMenuBar>
|
||||
*/
|
||||
|
||||
#include "log_plugin.h"
|
||||
#include "log_settings_page.h"
|
||||
|
||||
// Qt includes
|
||||
#include <QtCore/QObject>
|
||||
#include <QtGui/QMessageBox>
|
||||
#include <QtGui/QMainWindow>
|
||||
#include <QtGui/QMenu>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QMenuBar>
|
||||
#include <QtGui/QWidget>
|
||||
#include <QFile>
|
||||
#include <QDateTime>
|
||||
#include <QTextStream>
|
||||
|
||||
#include <QTextStream>
|
||||
|
||||
// NeL includes
|
||||
#include <nel/misc/debug.h>
|
||||
|
||||
// Project includes
|
||||
#include "../../extension_system/iplugin_spec.h"
|
||||
#include "qt_displayer.h"
|
||||
|
||||
using namespace Plugin;
|
||||
|
||||
namespace ExtensionSystem
|
||||
{
|
||||
class IPluginSpec;
|
||||
}
|
||||
#include "qt_displayer.h"
|
||||
|
||||
using namespace Plugin;
|
||||
|
||||
namespace ExtensionSystem
|
||||
{
|
||||
class IPluginSpec;
|
||||
}
|
||||
|
||||
CLogPlugin::CLogPlugin(QWidget *parent): QDockWidget(parent)
|
||||
{
|
||||
_ui.setupUi(this);
|
||||
}
|
||||
|
||||
|
||||
CLogPlugin::~CLogPlugin()
|
||||
{
|
||||
NLMISC::ErrorLog->removeDisplayer(_displayer);
|
||||
|
@ -98,7 +98,7 @@ void CLogPlugin::setNelContext(NLMISC::INelContext *nelContext)
|
|||
// Ensure that a context doesn't exist yet.
|
||||
// This only applies to platforms without PIC, e.g. Windows.
|
||||
nlassert(!NLMISC::INelContext::isContextInitialised());
|
||||
#endif // fdef NL_OS_WINDOWS^M
|
||||
#endif // fdef NL_OS_WINDOWS^M
|
||||
_LibContext = new NLMISC::CLibraryContext(*nelContext);
|
||||
|
||||
_displayer = new NLQT::CQtDisplayer(_ui.plainTextEdit);
|
||||
|
@ -120,30 +120,30 @@ QString CLogPlugin::vendor() const
|
|||
return "aquiles";
|
||||
}
|
||||
|
||||
QString CLogPlugin::description() const
|
||||
QString CLogPlugin::description() const
|
||||
{
|
||||
return "DockWidget to display all log messages from NeL.";
|
||||
}
|
||||
|
||||
QList<QString> CLogPlugin::dependencies() const
|
||||
{
|
||||
return QList<QString>();
|
||||
}
|
||||
|
||||
QObject* CLogPlugin::objectByName(const QString &name) const
|
||||
{
|
||||
|
||||
QList<QString> CLogPlugin::dependencies() const
|
||||
{
|
||||
return QList<QString>();
|
||||
}
|
||||
|
||||
QObject* CLogPlugin::objectByName(const QString &name) const
|
||||
{
|
||||
Q_FOREACH (QObject *qobj, _plugMan->allObjects())
|
||||
if (qobj->objectName() == name)
|
||||
return qobj;
|
||||
return 0;
|
||||
}
|
||||
|
||||
ExtensionSystem::IPluginSpec *CLogPlugin::pluginByName(const QString &name) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
ExtensionSystem::IPluginSpec *CLogPlugin::pluginByName(const QString &name) const
|
||||
{
|
||||
Q_FOREACH (ExtensionSystem::IPluginSpec *spec, _plugMan->plugins())
|
||||
if (spec->name() == name)
|
||||
return spec;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Q_EXPORT_PLUGIN(CLogPlugin)
|
||||
return 0;
|
||||
}
|
||||
|
||||
Q_EXPORT_PLUGIN(CLogPlugin)
|
||||
|
|
|
@ -22,7 +22,7 @@ typedef struct PIC_PICTURE
|
|||
|
||||
/*
|
||||
* JPG
|
||||
*/
|
||||
*/
|
||||
|
||||
|
||||
extern unsigned long Pic_JPG_Read( unsigned char *FileName,
|
||||
|
@ -35,7 +35,7 @@ extern unsigned long Pic_JPG_Write( unsigned char *FileName,
|
|||
unsigned long w, unsigned long h);
|
||||
/*
|
||||
* TGA
|
||||
*/
|
||||
*/
|
||||
extern unsigned long Pic_TGA_Read( unsigned char *FileName,
|
||||
unsigned char **ppPal, unsigned char **ppDatas,
|
||||
unsigned long *pWidth, unsigned long *pHeight,
|
||||
|
@ -45,7 +45,7 @@ extern unsigned long Pic_TGA_Write( unsigned char *FileName,
|
|||
unsigned long w, unsigned long h, unsigned long d);
|
||||
/*
|
||||
* BMP
|
||||
*/
|
||||
*/
|
||||
extern unsigned long Pic_BMP_Read( unsigned char *FileName,
|
||||
unsigned char **ppPal, unsigned char **ppDatas,
|
||||
unsigned long *pWidth, unsigned long *pHeight,
|
||||
|
@ -56,7 +56,7 @@ extern unsigned long Pic_BMP_Write( unsigned char *FileName,
|
|||
unsigned long w, unsigned long h, unsigned long d);
|
||||
/*
|
||||
* System
|
||||
*/
|
||||
*/
|
||||
extern void* Pic_malloc(unsigned long size);
|
||||
extern void* Pic_calloc(unsigned long count, unsigned long size);
|
||||
extern void Pic_free(void *memblock);
|
||||
|
|
|
@ -190,7 +190,7 @@ void extractStringsFromBinary (const vector<char> &fileArray, set<string> &filen
|
|||
// if we're pointing at a string the first 4 bytes ar the string length
|
||||
uint len=*(uint *)(arrayPointer+i);
|
||||
|
||||
// if the stringlength could be valid
|
||||
// if the string length could be valid
|
||||
if (len>0 && len+i<=size)
|
||||
{
|
||||
uint k;
|
||||
|
|
Loading…
Reference in a new issue