#4657 Remove unused parameter

This commit is contained in:
Magne Sjaastad
2019-09-05 19:37:52 +02:00
parent eb4f44d4d2
commit d44598c070
3 changed files with 6 additions and 6 deletions

View File

@@ -1105,8 +1105,8 @@ RiaPreferences* RiaApplication::preferences()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiaApplication::applyPreferences( const RiaPreferences* oldPreferences )
{
void RiaApplication::applyPreferences()
{
// The creation of a font is time consuming, so make sure you really need your own font
// instead of using the application font
std::map<RiaDefines::FontSettingType, RiaFontCache::FontSize> fontSizes = m_preferences->defaultFontSizes();
@@ -1410,7 +1410,7 @@ void RiaApplication::initialize()
m_preferences = new RiaPreferences;
caf::PdmSettings::readFieldsFromApplicationStore( m_preferences );
m_preferences->initAfterReadRecursively();
applyPreferences( nullptr );
applyPreferences();
// Start with a project
m_project = new RimProject;

View File

@@ -162,7 +162,7 @@ public:
void waitForProcess() const;
RiaPreferences* preferences();
void applyPreferences( const RiaPreferences* oldPreferences = nullptr );
void applyPreferences();
QString commandLineParameterHelp();
void setCommandLineHelpText( const QString& commandLineHelpText );

View File

@@ -56,8 +56,8 @@ void RicEditPreferencesFeature::onActionTriggered( bool isChecked )
if ( propertyDialog.exec() == QDialog::Accepted )
{
// Write preferences using QSettings and apply them to the application
app->applyPreferences( oldPreferences.get() );
app->applyGuiPreferences( oldPreferences.get() );
app->applyPreferences();
app->applyGuiPreferences(oldPreferences.get());
app->updateGrpcServer();
}
else