mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-19 03:39:08 +00:00
Fix some conformance-based compiler warnings
This commit is contained in:
@ -1247,7 +1247,7 @@ hsBool plPythonFileMod::MsgReceive(plMessage* msg)
|
||||
if (pNtfyMsg)
|
||||
{
|
||||
// remember if this was a Local Broad cast or not
|
||||
fLocalNotify = (pNtfyMsg->HasBCastFlag(plMessage ::plBCastFlags::kNetNonLocal)) ? false : true;
|
||||
fLocalNotify = (pNtfyMsg->HasBCastFlag(plMessage::kNetNonLocal)) ? false : true;
|
||||
|
||||
// create a list for the event records
|
||||
PyObject* levents = PyList_New(0); // start with a list of no elements
|
||||
|
@ -471,8 +471,8 @@ void pyDynamicText::AddPlasmaClasses(PyObject *m)
|
||||
void pyDynamicText::AddPlasmaConstantsClasses(PyObject *m)
|
||||
{
|
||||
PYTHON_ENUM_START(PtJustify);
|
||||
PYTHON_ENUM_ELEMENT(PtJustify, kCenter, plDynamicTextMap::Justify::kCenter);
|
||||
PYTHON_ENUM_ELEMENT(PtJustify, kLeftJustify, plDynamicTextMap::Justify::kLeftJustify);
|
||||
PYTHON_ENUM_ELEMENT(PtJustify, kRightJustify, plDynamicTextMap::Justify::kRightJustify);
|
||||
PYTHON_ENUM_ELEMENT(PtJustify, kCenter, plDynamicTextMap::kCenter);
|
||||
PYTHON_ENUM_ELEMENT(PtJustify, kLeftJustify, plDynamicTextMap::kLeftJustify);
|
||||
PYTHON_ENUM_ELEMENT(PtJustify, kRightJustify, plDynamicTextMap::kRightJustify);
|
||||
PYTHON_ENUM_END(m, PtJustify);
|
||||
}
|
@ -232,8 +232,9 @@ class pfColorListElement : public pfGUIListText
|
||||
wchar_t* thestring;
|
||||
if ( fString1 && fString2 )
|
||||
{
|
||||
thestring = TRACKED_NEW wchar_t[ wcslen( fString1 ) + wcslen( fString2 ) + 3 ];
|
||||
swprintf( thestring, L"%s %s", fString1, fString2 );
|
||||
size_t length = wcslen( fString1 ) + wcslen( fString2 ) + 3;
|
||||
thestring = TRACKED_NEW wchar_t[ length ];
|
||||
swprintf( thestring, length, L"%s %s", fString1, fString2 );
|
||||
wemade_string = true;
|
||||
}
|
||||
else if (fString1)
|
||||
|
@ -169,7 +169,7 @@ PyObject* pyImage::LoadJPEGFromDisk(const wchar* filename, UInt16 width, UInt16
|
||||
{
|
||||
if (width > 0 && height > 0)
|
||||
{
|
||||
if (!theMipmap->ResizeNicely(width, height, plMipmap::ScaleFilter::kDefaultFilter))
|
||||
if (!theMipmap->ResizeNicely(width, height, plMipmap::kDefaultFilter))
|
||||
{
|
||||
delete theMipmap;
|
||||
PYTHON_RETURN_NONE;
|
||||
|
Reference in New Issue
Block a user