projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use alphabetical order for #includes.
[pulseview.git]
/
pv
/
prop
/
bool.cpp
diff --git
a/pv/prop/bool.cpp
b/pv/prop/bool.cpp
index e3e0ebd50e86151408b14fe7420167a2e2db054a..2773eaae708ebdefbdc4906ee063400180d5395c 100644
(file)
--- a/
pv/prop/bool.cpp
+++ b/
pv/prop/bool.cpp
@@
-14,11
+14,10
@@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
*/
-#include <
assert.h
>
+#include <
cassert
>
#include <QCheckBox>
#include <QCheckBox>
@@
-29,11
+28,7
@@
namespace prop {
Bool::Bool(QString name, Getter getter, Setter setter) :
Property(name, getter, setter),
Bool::Bool(QString name, Getter getter, Setter setter) :
Property(name, getter, setter),
- check_box_(NULL)
-{
-}
-
-Bool::~Bool()
+ check_box_(nullptr)
{
}
{
}
@@
-43,11
+38,11
@@
QWidget* Bool::get_widget(QWidget *parent, bool auto_commit)
return check_box_;
if (!getter_)
return check_box_;
if (!getter_)
- return
NULL
;
+ return
nullptr
;
Glib::VariantBase variant = getter_();
if (!variant.gobj())
Glib::VariantBase variant = getter_();
if (!variant.gobj())
- return
NULL
;
+ return
nullptr
;
bool value = Glib::VariantBase::cast_dynamic<Glib::Variant<bool>>(
variant).get();
bool value = Glib::VariantBase::cast_dynamic<Glib::Variant<bool>>(
variant).get();
@@
-83,5
+78,5
@@
void Bool::on_state_changed(int)
commit();
}
commit();
}
-}
//
prop
-}
//
pv
+}
// namespace
prop
+}
// namespace
pv