]> git.lyx.org Git - features.git/commitdiff
Use nullptr
authorYuriy Skalko <yuriy.skalko@gmail.com>
Tue, 27 Oct 2020 09:20:27 +0000 (11:20 +0200)
committerYuriy Skalko <yuriy.skalko@gmail.com>
Thu, 29 Oct 2020 13:52:33 +0000 (15:52 +0200)
src/insets/Inset.h

index 2fec7023a6fa1bea461181f547615e61d87f74fc..bf165d91c58470d66d25abb9b403807099ada1f8 100644 (file)
@@ -135,33 +135,33 @@ public:
        virtual bool isLabeled() const { return false; }
 
        /// identification as math inset
-       virtual InsetMath * asInsetMath() { return 0; }
+       virtual InsetMath * asInsetMath() { return nullptr; }
        /// identification as math inset
-       virtual InsetMath const * asInsetMath() const { return 0; }
+       virtual InsetMath const * asInsetMath() const { return nullptr; }
        /// true for 'math' math inset, but not for e.g. mbox
        virtual bool inMathed() const { return false; }
        /// is this inset based on the InsetText class?
-       virtual InsetText * asInsetText() { return 0; }
+       virtual InsetText * asInsetText() { return nullptr; }
        /// is this inset based on the InsetText class?
-       virtual InsetText const * asInsetText() const { return 0; }
+       virtual InsetText const * asInsetText() const { return nullptr; }
        /// is this inset based on the InsetCollapsible class?
-       virtual InsetCollapsible * asInsetCollapsible() { return 0; }
+       virtual InsetCollapsible * asInsetCollapsible() { return nullptr; }
        /// is this inset based on the InsetCollapsible class?
-       virtual InsetCollapsible const * asInsetCollapsible() const { return 0; }
+       virtual InsetCollapsible const * asInsetCollapsible() const { return nullptr; }
        /// is this inset based on the InsetTabular class?
-       virtual InsetTabular * asInsetTabular() { return 0; }
+       virtual InsetTabular * asInsetTabular() { return nullptr; }
        /// is this inset based on the InsetTabular class?
-       virtual InsetTabular const * asInsetTabular() const { return 0; }
+       virtual InsetTabular const * asInsetTabular() const { return nullptr; }
        /// is this inset based on the InsetCommand class?
-       virtual InsetCommand * asInsetCommand() { return 0; }
+       virtual InsetCommand * asInsetCommand() { return nullptr; }
        /// is this inset based on the InsetCommand class?
-       virtual InsetCommand const * asInsetCommand() const { return 0; }
+       virtual InsetCommand const * asInsetCommand() const { return nullptr; }
        /// is this inset based on the InsetArgument class?
        virtual InsetArgument const * asInsetArgument() const { return nullptr; }
        /// is this inset based on the InsetGraphics class?
-       virtual InsetGraphics * asInsetGraphics() { return 0; }
+       virtual InsetGraphics * asInsetGraphics() { return nullptr; }
        /// is this inset based on the InsetGraphics class?
-       virtual InsetGraphics const * asInsetGraphics() const { return 0; }
+       virtual InsetGraphics const * asInsetGraphics() const { return nullptr; }
 
        /// the real dispatcher
        void dispatch(Cursor & cur, FuncRequest & cmd);