1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
--- bombono-dvd-1.2.2/src/mgui/dvdimport.cpp 2015-11-20 18:22:23.123778752 +0330
+++ new/src/mgui/dvdimport.cpp 2015-11-20 18:22:11.813779436 +0330
@@ -275,7 +275,7 @@
id.errLbl.hide();
id.reader = rd;
- SetCurPageComplete(id.ast, id.reader);
+ SetCurPageComplete(id.ast, id.reader != nullptr);
return rd;
}
--- bombono-dvd-1.2.2/src/mgui/author/script.cpp 2013-03-08 00:50:45.000000000 +0330
+++ new/src/mgui/author/script.cpp 2015-11-20 18:29:40.877085620 +0330
@@ -279,7 +279,7 @@
ASSERT_RTL( vi || mn );
// VTS domain
- bool is_video = vi;
+ bool is_video = vi != nullptr;
const PostAction& pa = is_video ? vi->PAction() : mn->MtnData().pAct ;
std::string jnt_cmd;
--- bombono-dvd-1.2.2/src/mgui/project/add.cpp 2013-03-08 00:50:45.000000000 +0330
+++ new/src/mgui/project/add.cpp 2015-11-20 18:40:01.493714764 +0330
@@ -415,7 +415,7 @@
{
std::string err_str;
Gtk::TreePath pth;
- bool res = TryAddMedia(fname.c_str(), pth, err_str);
+ bool res = TryAddMedia(fname.c_str(), pth, err_str) != nullptr;
if( !res )
{
LOG_ERR << "TryAddMediaQuiet error (" << desc << "): " << err_str << io::endl;
@@ -538,7 +538,7 @@
continue;
}
- bool res = TryAddMedia(fpath.c_str(), brw_pth, err_str, insert_after);
+ bool res = TryAddMedia(fpath.c_str(), brw_pth, err_str, insert_after) != nullptr;
if( res )
{
insert_after = true; // вставляем друг за другом
--- bombono-dvd-1.2.2/src/mgui/project/media-browser.cpp 2013-03-08 00:50:45.000000000 +0330
+++ new/src/mgui/project/media-browser.cpp 2015-11-20 19:06:49.926950853 +0330
@@ -854,7 +854,7 @@
Gtk::MenuItem& ea_itm = AppendMI(mn, NewManaged<Gtk::MenuItem>(_("End Action")));
// только видео
VideoItem vi = IsVideo(mi);
- if( SetEnabled(ea_itm, vi) )
+ if( SetEnabled(ea_itm, vi != nullptr) )
ea_itm.set_submenu(EndActionMenuBld(vi->PAction(), boost::function_identity,
VideoAddConstantChoice).Create());
@@ -863,10 +863,10 @@
// калькулятор
AddDialogItem(mn, DialogParams(_("Bitrate Calculator"), bb::bind(&RunBitrateCalc, vi, _1, b::ref(brw)),
350, &brw), tr_enabled);
- AddEnabledItem(mn, _("Reason For Transcoding"), bb::bind(&ShowDVDCompliantStatus, vi), vi);
+ AddEnabledItem(mn, _("Reason For Transcoding"), bb::bind(&ShowDVDCompliantStatus, vi), vi != nullptr);
AppendSeparator(mn);
- AddDialogItem(mn, SubtitlesDialog(vi, &brw), vi);
+ AddDialogItem(mn, SubtitlesDialog(vi, &brw), vi != nullptr);
Popup(mn, event, true);
}
--- bombono-dvd-1.2.2/src/mgui/project/thumbnail.cpp 2013-03-08 00:50:45.000000000 +0330
+++ new/src/mgui/project/thumbnail.cpp 2015-11-20 19:22:23.963561051 +0330
@@ -410,7 +410,7 @@
{
if( AData().FirstPlayItem() != mi )
return;
- bool is_menu = IsMenu(mi);
+ bool is_menu = IsMenu(mi) != nullptr;
RefPtr<Gdk::Pixbuf> emblem = GetCheckEmblem(pix, is_menu
? "copy-n-paste/HelixPlayer_Activity-watch-listen/28.png"
: "copy-n-paste/HelixPlayer_Activity-watch-listen/16.png");
|