]> git.lizzy.rs Git - irrlicht.git/blobdiff - source/Irrlicht/CGUICheckBox.cpp
Avoid undefined arithmetic on nullptr in buffer_offset function
[irrlicht.git] / source / Irrlicht / CGUICheckBox.cpp
index 9fc6dc796c81abceec99d0a45f512a88d672d8ae..6c5271ff0b74a5d3971ea2bf1d22760afc1b3973 100644 (file)
@@ -4,8 +4,6 @@
 \r
 #include "CGUICheckBox.h"\r
 \r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
 #include "IGUISkin.h"\r
 #include "IGUIEnvironment.h"\r
 #include "IVideoDriver.h"\r
@@ -225,30 +223,5 @@ bool CGUICheckBox::isDrawBorderEnabled() const
 }\r
 \r
 \r
-//! Writes attributes of the element.\r
-void CGUICheckBox::serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const\r
-{\r
-       IGUICheckBox::serializeAttributes(out,options);\r
-\r
-       out->addBool("Checked", Checked);\r
-       out->addBool("Border",  Border);\r
-       out->addBool("Background", Background);\r
-}\r
-\r
-\r
-//! Reads attributes of the element\r
-void CGUICheckBox::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0)\r
-{\r
-       Checked = in->getAttributeAsBool ("Checked");\r
-       Border = in->getAttributeAsBool ("Border", Border);\r
-       Background = in->getAttributeAsBool ("Background", Background);\r
-\r
-       IGUICheckBox::deserializeAttributes(in,options);\r
-}\r
-\r
-\r
 } // end namespace gui\r
 } // end namespace irr\r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r