From ff470469f5bb97218ac1af744cdac58c1a7e81fe Mon Sep 17 00:00:00 2001 From: luzpaz Date: Mon, 13 Mar 2023 12:22:49 +0000 Subject: [PATCH] Fix misc. grammar and whitespace --- src/Base/Factory.h | 4 ++-- src/Mod/AddonManager/addonmanager_utilities.py | 2 +- src/Mod/Fem/femexamples/equation_magnetodynamics_2D_elmer.py | 2 +- src/Mod/Fem/femexamples/equation_magnetostatics_2D_elmer.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Base/Factory.h b/src/Base/Factory.h index 035a78b173..116cc21391 100644 --- a/src/Base/Factory.h +++ b/src/Base/Factory.h @@ -49,8 +49,8 @@ public: /** Base class of all factories - * This class has the purpose to produce at runtime instances - * of classes not known at compile time. It holds a map of so called + * This class has the purpose to produce a runtime instance + * of classes unknown at compile time. It holds a map of so called * producers which are able to produce an instance of a special class. * Producer can be registered at runtime through e.g. application modules */ diff --git a/src/Mod/AddonManager/addonmanager_utilities.py b/src/Mod/AddonManager/addonmanager_utilities.py index af959bd7ac..803af107fe 100644 --- a/src/Mod/AddonManager/addonmanager_utilities.py +++ b/src/Mod/AddonManager/addonmanager_utilities.py @@ -143,7 +143,7 @@ def remove_directory_if_empty(dir_to_remove): def restart_freecad(): """Shuts down and restarts FreeCAD""" - + if not QtCore or not QtWidgets: return diff --git a/src/Mod/Fem/femexamples/equation_magnetodynamics_2D_elmer.py b/src/Mod/Fem/femexamples/equation_magnetodynamics_2D_elmer.py index c1ad175870..dd3220b355 100644 --- a/src/Mod/Fem/femexamples/equation_magnetodynamics_2D_elmer.py +++ b/src/Mod/Fem/femexamples/equation_magnetodynamics_2D_elmer.py @@ -184,7 +184,7 @@ def setup(doc=None, solvertype="elmer"): equation_magnetodynamic2D.IsHarmonic = True else: FreeCAD.Console.PrintWarning( - "Not known or not supported solver type: {}. " + "Unknown or unsupported solver type: {}. " "No solver object was created.\n".format(solvertype) ) return doc diff --git a/src/Mod/Fem/femexamples/equation_magnetostatics_2D_elmer.py b/src/Mod/Fem/femexamples/equation_magnetostatics_2D_elmer.py index 2970684320..39c07025eb 100644 --- a/src/Mod/Fem/femexamples/equation_magnetostatics_2D_elmer.py +++ b/src/Mod/Fem/femexamples/equation_magnetostatics_2D_elmer.py @@ -180,7 +180,7 @@ def setup(doc=None, solvertype="elmer"): equation_magnetodynamic2D.CalculateMagneticFieldStrength = True else: FreeCAD.Console.PrintWarning( - "Not known or not supported solver type: {}. " + "Unknown or unsupported solver type: {}. " "No solver object was created.\n".format(solvertype) ) return doc