Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Altren committed Apr 2, 2011
1 parent e24ee34 commit 00ed721
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion Demos/Demo_ItemBox/ResourceItemInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ namespace demo

const std::string& ResourceItemInfo::getItemResourceImage()
{
//TODO: cppcheck
return mItemResourceImage;
}

Expand Down
1 change: 0 additions & 1 deletion MyGUIEngine/src/MyGUI_EditBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,6 @@ namespace MyGUI
// возвращает текст
UString EditBox::getTextInterval(size_t _start, size_t _count)
{
//TODO: cppcheck
// подстраховка
if (_start > mTextLength) _start = mTextLength;
// конец диапазона
Expand Down
1 change: 0 additions & 1 deletion MyGUIEngine/src/MyGUI_MenuControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ namespace MyGUI

MenuControl* menu = mItemsInfo[_index].submenu;

// TODO: duplicate code
if (mVerticalAlignment)
{
// too wide
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace MyGUI

D3DCAPS9 caps;
mpD3DDevice->GetDeviceCaps(&caps);
if(caps.TextureCaps & D3DPTEXTURECAPS_SQUAREONLY)
if (caps.TextureCaps & D3DPTEXTURECAPS_SQUAREONLY)
{
MYGUI_PLATFORM_LOG(Warning, "Non-squared textures not supported.");
}
Expand Down
2 changes: 1 addition & 1 deletion Scripts/cppcheck/cppcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ def checkFolderSources(folder, flags) :
checkFolderSources('Platforms/Ogre/OgrePlatform/src', '-I Platforms/Ogre/OgrePlatform/include')
checkFolderSources('Platforms/DirectX/DirectXPlatform/src', '-I Platforms/DirectX/DirectXPlatform/include')
checkFolderSources('Plugins', '')
checkFolderSources('Wrappers', '')
checkFolderSources('Wrappers/WrapperGenerator', '')

2 changes: 0 additions & 2 deletions Tools/SkinEditor/SettingsSector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,12 @@ namespace tools

bool SettingsSector::getExistProperty(const MyGUI::UString& _propertyName)
{
// TODO CPPCHECK
MapUString::const_iterator item = mProperties.find(_propertyName);
return item != mProperties.end();
}

const MyGUI::UString& SettingsSector::getPropertyValue(const MyGUI::UString& _propertyName)
{
// TODO CPPCHECK
MapUString::const_iterator item = mProperties.find(_propertyName);
if (item != mProperties.end())
return (*item).second;
Expand Down
2 changes: 1 addition & 1 deletion Wrappers/WrapperGenerator/MemberFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ namespace wrapper
mNeedPrint = _value;
}

bool isNeedInsert()
bool isNeedInsert() const
{
if (
!mNeedPrint ||
Expand Down
2 changes: 1 addition & 1 deletion Wrappers/WrapperGenerator/MemberVariable.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ namespace wrapper

private:

bool isNeedInsert()
bool isNeedInsert() const
{
return ! mProtection;
}
Expand Down

0 comments on commit 00ed721

Please sign in to comment.