Commit 4e74122a authored by hungdangquoc's avatar hungdangquoc
Browse files

[STYLE #60] remove stylecheck error

parent e3c90353
......@@ -158,7 +158,7 @@ bool WMCsvConverter::canShow( WDataSetCSV::Content::iterator dataRow )
if( m_protonData->isColumnAvailable( "PDGEncoding" ) )
{
if( !m_propertyStatus->getFilterPropertyHandler()->isPDGTypeSelected(
if( !m_propertyStatus->getFilterPropertyHandler()->isPDGTypeSelected(
std::stoi( dataRow->at( m_indexes->getPDGEncoding( ) ) ) ) )
{
return false;
......
......@@ -120,7 +120,7 @@ void WMFilterPropertyHandler::createMultiSelectionForPDG()
{
WPropertyBase::PropertyChangeNotifierType pdgEncodingnotifier = boost::bind(
&WMFilterPropertyHandler::updateSelectedPDGTypes, this );
m_particleItemSelectionList = WItemSelection::SPtr( new WItemSelection() );
m_pdgTypes.clear();
......@@ -153,7 +153,6 @@ void WMFilterPropertyHandler::createPropToSetParticleNames()
{
WPropertyBase::PropertyChangeNotifierType notifierSetParticleName = boost::bind(
&WMFilterPropertyHandler::saveRenameParticleButtonClick, this, boost::placeholders::_1 );
m_filteringsubGroup = m_filteringGroup->addPropertyGroup( "Rename or Delete Particle-Name",
"Change, set a new name or delete for a particlename" );
......@@ -176,17 +175,15 @@ void WMFilterPropertyHandler::saveRenameParticleButtonClick( WPropertyBase::SPtr
{
if(property == m_saveButton && m_saveButton->get(true ) == WPVBaseTypes::PV_TRIGGER_TRIGGERED )
{
WItemSelector selectedItems = m_PdgForRenameSelection->get( true );
WItemSelector selectedItems = m_PdgForRenameSelection->get( true );
std::string newParticleName = m_aString->get( true );
int pdg = getPdgFromName( selectedItems.at( 0 )->getName() );
changePdgBiMap( pdg, newParticleName );
updatePDGProperties();
}
}
bool WMFilterPropertyHandler::isPDGTypeSelected( int pdgType )
{
WItemSelector selectedItems = m_multiSelection->get( true );
......
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