Commit f12c8deb authored by Jan Möbius's avatar Jan Möbius

Fixed cppcheck warning.

Don't explicitly add section to ini files as this is done automatically.



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14056 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8be624cf
......@@ -31,7 +31,7 @@ class PropertyNameListModel: public QAbstractListModel {
class TypeInfoWrapper {
public:
TypeInfoWrapper(const std::type_info & ti, const char *friendlyName) : ti(&ti), friendlyName(friendlyName) {}
TypeInfoWrapper(const std::type_info & ti) : ti(&ti) {}
TypeInfoWrapper(const std::type_info & ti) : ti(&ti),friendlyName("") {}
operator const std::type_info *() const { return ti; }
operator const std::type_info &() const { return *ti; }
......
......@@ -552,9 +552,6 @@ void PropertyVisPlugin::saveIniFileOptions( INIFile& _ini ) {
QString sectionName = "PropertyVis";
if ( !_ini.section_exists( sectionName ) )
_ini.add_section( sectionName );
_ini.add_entry(sectionName , "DataType" , tool_->propertyDataType->currentIndex() );
_ini.add_entry(sectionName , "Type" , tool_->propertyType->currentIndex() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment