mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Change API for PdmObjectHandle and PdmFieldHandle
* Refactor interface to PdmObjectHandle and PdmFieldHandle Return objects instead of passing in structures as parameters * Add nodiscard to several functions * Remove redundant this-> * Rename to ptrReferencedObjectsByType
This commit is contained in:
@@ -54,8 +54,7 @@ RimLegendConfig::~RimLegendConfig()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
int RimLegendConfig::fontSize() const
|
||||
{
|
||||
caf::FontHolderInterface* parentFontHolder = nullptr;
|
||||
this->firstAncestorOfType( parentFontHolder );
|
||||
auto parentFontHolder = firstAncestorOfType<caf::FontHolderInterface>();
|
||||
if ( parentFontHolder ) return parentFontHolder->fontSize();
|
||||
|
||||
return caf::FontTools::absolutePointSize( RiaPreferences::current()->defaultSceneFontSize() );
|
||||
|
||||
Reference in New Issue
Block a user