{"id":319096,"date":"2021-03-05T09:01:10","date_gmt":"2021-03-05T09:01:10","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=319096"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=319096","title":{"rendered":"\u041d\u0435\u0434\u043e\u043b\u0433\u043e \u043c\u0443\u0437\u044b\u043a\u0430 \u0438\u0433\u0440\u0430\u043b\u0430 \u0438\u043b\u0438 \u0430\u043d\u0430\u043b\u0438\u0437 \u043a\u043e\u0434\u0430 MuseScore"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0412 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0444\u0435\u0440\u0430\u0445 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435, \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u044f\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u043d\u0430\u043d\u0438\u044f\u043c\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0441\u043a\u0438\u0439 \u0441\u043e\u0444\u0442 \u0438\u043b\u0438 \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u044b\u0439, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u043e\u0439\u0434\u0451\u0442 \u0440\u0435\u0447\u044c \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435. \u0422\u0443\u0442 \u043d\u0443\u0436\u043d\u044b \u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0444\u0438\u043b\u044c\u043d\u044b\u0445 \u044d\u043a\u0441\u043f\u0435\u0440\u0442\u043e\u0432. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0443\u0434\u043e\u0440\u043e\u0436\u0438\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u043d\u043e\u0433\u0434\u0430 \u044d\u043a\u043e\u043d\u043e\u043c\u044f\u0442 \u043d\u0430 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u0434\u0430. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 MuseScore, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0436\u043d\u0430 \u044d\u043a\u0441\u043f\u0435\u0440\u0442\u0438\u0437\u0430 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043a\u043e\u0434\u0430, \u0441\u043a\u0440\u0430\u0441\u0438\u0432 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0435\u043a\u0441\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0441\u043a\u0438\u043c \u0438 \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u044e\u043c\u043e\u0440\u043e\u043c.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9c5\/b4f\/ba1\/9c5b4fba1e76a57cb3d440112eb6a591.png\" width=\"400\" height=\"345\"><figcaption><\/figcaption><\/figure>\n<h3>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h3>\n<p><a href=\"https:\/\/musescore.com\/\">MuseScore<\/a> \u2014 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043d\u043e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440\u0442\u0438\u0442\u0443\u0440 \u0434\u043b\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c Windows, Mac OS X \u0438 Linux. MuseScore \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u043e\u0442\u044b \u043a\u0430\u043a \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430, \u0442\u0430\u043a \u0438 \u0441 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 MIDI-\u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u043c\u043f\u043e\u0440\u0442 \u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0430\u0445 MIDI, MusicXML, LilyPond, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0438\u043c\u043f\u043e\u0440\u0442 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0430\u0445 MusE, Capella \u0438 Band-in-a-Box. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043c\u043e\u0436\u0435\u0442 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0442\u0438\u0442\u0443\u0440\u044b \u0432 \u0444\u0430\u0439\u043b\u044b PDF, SVG \u0438 PNG \u043b\u0438\u0431\u043e \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b LilyPond \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0439 \u0442\u043e\u0447\u043d\u043e\u0439 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0438.<\/p>\n<p>\u0420\u0430\u043d\u0435\u0435 \u043c\u044b \u0443\u0436\u0435 <a href=\"https:\/\/www.viva64.com\/ru\/b\/0530\/\">\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0438<\/a> \u043a\u043e\u0434 MuseScore \u0432 2017 \u0433\u043e\u0434\u0443. \u0422\u043e\u0433\u0434\u0430 \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0445\u0432\u0430\u0442\u0438\u043b\u043e \u043d\u0430 \u0446\u0435\u043b\u044b\u0439 \u0446\u0438\u043a\u043b \u0438\u0437 5 \u0441\u0442\u0430\u0442\u0435\u0439 \u0441 \u043e\u0431\u0437\u043e\u0440\u043e\u043c \u043a\u043e\u0434\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043c\u0443\u0437\u044b\u043a\u0438.<\/p>\n<p>MuseScore \u2013 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u0442\u0430\u044f \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u0435\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u043e\u0442\u044b \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0439 \u043c\u0435\u043b\u043e\u0434\u0438\u0438. \u041a\u0440\u043e\u043c\u0435 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u0430\u0439\u0442\u043e\u043c \u0438\u043b\u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c. \u0421\u0435\u0439\u0447\u0430\u0441 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043d\u043e\u0442 \u0441\u0442\u0430\u043b\u0430 \u043f\u043b\u0430\u0442\u043d\u043e\u0439 \u043f\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0435, \u043d\u043e \u044d\u0442\u043e \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u044d\u0442\u0430\u043f \u0432 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430. \u0411\u0443\u0434\u0435\u043c \u043d\u0430\u0434\u0435\u044f\u0442\u044c\u0441\u044f, \u0447\u0430\u0441\u0442\u044c \u0437\u0430\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u043d\u0430 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043a\u043e\u0434\u0430. \u041f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0440\u0430 \u0443\u0434\u0435\u043b\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0434\u0430\u043b\u0435\u0435.<\/p>\n<h3>Copy-paste code<\/h3>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/608\/334\/c8e\/608334c8e4411ac2beaf8613d18de661.png\" width=\"580\" height=\"220\"><figcaption><\/figcaption><\/figure>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v501\/\">V501<\/a> There are identical sub-expressions to the left and to the right of the &#8216;==&#8217; operator: desiredLen == desiredLen importmidi_simplify.cpp 44<\/p>\n<pre><code>bool areDurationsEqual(   const QList &gt;&amp; durations,   const ReducedFraction&amp; desiredLen) {   ReducedFraction sum(0, 1);   for (const auto&amp; d: durations) {     sum += ReducedFraction(d.second.fraction()) \/ d.first;   }    return desiredLen == desiredLen; } <\/code><\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0435\u0439 \u043d\u043e\u0442 \u0438\u043b\u0438 \u0447\u0435\u0433\u043e-\u0442\u043e \u0435\u0449\u0451 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \u0412\u0441\u0451 \u0438\u0437-\u0437\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <em>desiredLen<\/em> \u0432 \u0441\u0430\u043c\u043e\u043c \u043a\u043e\u043d\u0446\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u0438\u043c:<\/p>\n<pre><code>return desiredLen == sum; <\/code><\/pre>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v501\/\">V501<\/a> There are identical sub-expressions to the left and to the right of the &#8216;-&#8216; operator: i &#8212; i textbase.cpp 1986<\/p>\n<pre><code>void TextBase::layout1() {   ....   for (int i = 0; i &lt; rows(); ++i) {     TextBlock* t = &amp;_layout[i];     t-&gt;layout(this);     const QRectF* r = &amp;t-&gt;boundingRect();      if (r-&gt;height() == 0) {       r = &amp;_layout[i - i].boundingRect();    \/\/ &lt;=     }     y += t-&gt;lineSpacing();     t-&gt;setY(y);     bb |= r-&gt;translated(0.0, y);   }   .... } <\/code><\/pre>\n<p>\u0418\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 <em>layout<\/em> \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0435\u0440\u0451\u0442\u0441\u044f \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e\u0449\u0435\u0435 \u0438\u043d\u0434\u0435\u043a\u0441, \u0437\u0430\u043a\u0440\u0430\u043b\u0430\u0441\u044c \u043e\u0448\u0438\u0431\u043a\u0430.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v523\/\">V523<\/a> The &#8216;then&#8217; statement is equivalent to the &#8216;else&#8217; statement. bsp.cpp 194<\/p>\n<pre><code>QString BspTree::debug(int index) const {   ....   if (node-&gt;type == Node::Type::HORIZONTAL) {     tmp += debug(firstChildIndex(index));     tmp += debug(firstChildIndex(index) + 1);   } else {     tmp += debug(firstChildIndex(index));     tmp += debug(firstChildIndex(index) + 1);   }   .... } <\/code><\/pre>\n<p>\u041e\u0442\u043b\u0430\u0434\u043a\u0430 \u043a\u043e\u0434\u0430 \u2013 \u044d\u0442\u043e \u0443\u0436\u0435 \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u043d\u0435\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u043a\u043e\u0434\u0435. \u0423\u0441\u0443\u0433\u0443\u0431\u0438\u0442\u044c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 \u0432 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u043e\u043c \u043a\u043e\u0434\u0435. \u0417\u0434\u0435\u0441\u044c \u043a\u043e\u0434 \u0434\u0432\u0443\u0445 \u0432\u0435\u0442\u0432\u0435\u0439 \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u0435\u043d. \u041d\u0435\u0441\u043b\u043e\u0436\u043d\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043a\u043e\u0434 \u0431\u044b\u043b \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0430 \u0432\u043d\u0435\u0441\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432\u043e \u0432\u0442\u043e\u0440\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u043a\u043e\u0434\u0430 \u0437\u0430\u0431\u044b\u043b\u0438.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v524\/\">V524<\/a> It is odd that the body of &#8216;downLine&#8217; function is fully equivalent to the body of &#8216;upLine&#8217; function. rest.cpp 718<\/p>\n<pre><code>int Rest::upLine() const {     qreal _spatium = spatium();     return lrint((pos().y() + bbox().top() + _spatium) * 2 \/ _spatium); }  int Rest::downLine() const {     qreal _spatium = spatium();     return lrint((pos().y() + bbox().top() + _spatium) * 2 \/ _spatium); } <\/code><\/pre>\n<p>\u0412 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 <em>upLine<\/em> \u0438 <em>downLine<\/em> \u043e\u0442\u0440\u0430\u0436\u0435\u043d \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u044b\u0439 \u0441\u043c\u044b\u0441\u043b, \u043d\u043e \u044d\u0442\u043e \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043f\u043e\u0434\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u044d\u0442\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0438\u043c\u0435\u0435\u0442 \u043c\u0435\u0441\u0442\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437-\u0437\u0430 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v778\/\">V778<\/a> Two similar code fragments were found. Perhaps, this is a typo and &#8216;description&#8217; variable should be used instead of &#8216;name&#8217;. instrumentsreader.cpp 407<\/p>\n<pre><code>void InstrumentsReader::fillByDeffault(Instrument&amp; instrument) const {   ....   if (instrument.name.isEmpty() &amp;&amp; !instrument.longNames.isEmpty()) {       instrument.name = instrument.longNames[0].name();   }   if (instrument.description.isEmpty() &amp;&amp; !instrument.longNames.isEmpty()) {       instrument.description = instrument.longNames[0].name();   }   .... } <\/code><\/pre>\n<p>\u041f\u043e\u043b\u044f <em>instrument.name<\/em> \u0438* instrument.description* \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043a\u043e\u0434 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c. \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f &#171;name&#187; \u0438 &#171;description&#187; \u2013 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u043e \u0441\u043c\u044b\u0441\u043b\u0443 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0442\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u0438\u043d\u0434\u0435\u043a\u0441, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043e\u0431\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u043a \u043c\u0430\u0441\u0441\u0438\u0432\u0443 <em>longNames<\/em>.<\/p>\n<h3>\u0414\u0435\u0431\u044e\u0442 \u043d\u043e\u0432\u044b\u0445 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a<\/h3>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0bf\/b47\/55f\/0bfb4755f734b08d74e646b11f0100a7.png\" width=\"400\" height=\"434\"><figcaption><\/figcaption><\/figure>\n<p>\u0421 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u044b \u043d\u0430\u0434\u0435\u043b\u0430\u043b\u0438 \u043d\u043e\u0432\u044b\u0445 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043c\u043e\u0433\u043b\u0438 \u043d\u0430\u0439\u0442\u0438 \u0435\u0449\u0451 \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v1063\/\">V1063<\/a> The modulo by 1 operation is meaningless. The result will always be zero. lyrics.h 85<\/p>\n<pre><code>class Lyrics final : public TextBase {   ....   bool isEven() const { return _no % 1; }   .... } <\/code><\/pre>\n<p>\u041e\u0447\u0435\u043d\u044c \u0437\u0430\u0431\u0430\u0432\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u043d\u0430\u0448\u043b\u0430\u0441\u044c \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043d\u043e\u0432\u044b\u0445 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a. \u0424\u0443\u043d\u043a\u0446\u0438\u044f <em>isEven<\/em> \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c <em>true<\/em>, \u0435\u0441\u043b\u0438 \u0447\u0438\u0441\u043b\u043e \u0447\u0451\u0442\u043d\u043e\u0435, \u0438\u043d\u0430\u0447\u0435 \u2013 <em>false<\/em> (\u043d\u0435\u0447\u0451\u0442\u043d\u043e\u0435). \u041d\u043e, \u043f\u043e \u0444\u0430\u043a\u0442\u0443, \u0438\u0437-\u0437\u0430 \u0432\u0437\u044f\u0442\u0438\u044f \u043e\u0441\u0442\u0430\u0442\u043a\u0430 \u043e\u0442 1, \u0430 \u043d\u0435 2 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>false<\/em>. \u0422.\u0435. \u0432\u0441\u0435 \u0447\u0438\u0441\u043b\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u043d\u0435\u0447\u0451\u0442\u043d\u044b\u0435.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v1065\/\">V1065<\/a> Expression can be simplified, check &#8216;1&#8217; and similar operands. scorediff.cpp 444<\/p>\n<pre><code>QString MscxModeDiff::getOuterLines(const QString&amp; str, int lines, bool start) {     lines = qAbs(lines);     const int secIdxStart = start ? 0 : (-1 - (lines - 1));     .... } <\/code><\/pre>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u044d\u0442\u043e \u043d\u0435 \u043e\u0448\u0438\u0431\u043a\u0430. \u041d\u043e \u0438\u043c\u0435\u044e\u0449\u0438\u0439\u0441\u044f \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0434\u043e \u0442\u0430\u043a\u043e\u0433\u043e:<\/p>\n<pre><code>const int secIdxStart = start ? 0 : -lines ; <\/code><\/pre>\n<p>\u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u0442\u0440\u0430\u043d\u043d\u043e. <\/p>\n<h3>\u0412\u0435\u0447\u043d\u0430\u044f \u043a\u043b\u0430\u0441\u0441\u0438\u043a\u0430: \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0432 C++<\/h3>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9ce\/963\/e40\/9ce963e407848a9698e0bcd2d99251d8.png\" width=\"400\" height=\"335\"><figcaption><\/figcaption><\/figure>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v522\/\">V522<\/a> Dereferencing of the null pointer &#8216;family&#8217; might take place. instrtemplate.cpp 356<\/p>\n<pre><code>void InstrumentTemplate::write(XmlWriter&amp; xml) const {   ....   if (!family) {     xml.tag(\"family\", family-&gt;id);   }   xml.etag(); } <\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u0433\u0430 &#171;family&#187; \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043a\u0430\u0442\u0430\u0441\u0442\u0440\u043e\u0444\u043e\u0439 \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432 \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043b\u0438\u0448\u043d\u0435\u0435 \u043e\u0442\u0440\u0438\u0446\u0430\u043d\u0438\u0435.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v522\/\">V522<\/a> Dereferencing of the null pointer &#8216;destinationMeasure&#8217; might take place. score.cpp 4279<\/p>\n<pre><code>ChordRest* Score::cmdNextPrevSystem(ChordRest* cr, bool next) {   ....   auto destinationMeasure = currentSystem-&gt;firstMeasure();   ....   if (!(destinationMeasure = destinationMeasure-&gt;prevMeasure())) {     if (!(destinationMeasure = destinationMeasure-&gt;prevMeasureMM())) {         return cr;     }   }   .... } <\/code><\/pre>\n<p>\u041f\u043e\u0445\u043e\u0436\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043d\u043e \u043c\u0435\u043d\u0435\u0435 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u0430\u044f. \u041f\u0440\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043a \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044e <em>destinationMeasure<\/em> \u0432\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u043c \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v595\/\">V595<\/a> The &#8216;fd&#8217; pointer was utilized before it was verified against nullptr. Check lines: 5365, 5366. edit.cpp 5365<\/p>\n<pre><code>void Score::undoAddElement(Element* element) {   ....   FretDiagram* fd = toFretDiagram(ne);   Harmony* fdHarmony = fd-&gt;harmony();   if (fd) {     fdHarmony-&gt;setScore(score);     fdHarmony-&gt;setSelected(false);     fdHarmony-&gt;setTrack(staffIdx * VOICES + element-&gt;voice());   }   .... } <\/code><\/pre>\n<p>Fret Diagram (\u0438\u043b\u0438 FretBoard) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u043c\u0435\u043b\u043e\u0434\u0438\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0433\u0438\u0442\u0430\u0440\u0438\u0441\u0442\u0430\u043c\u0438. \u0418 \u0438\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0435 \u043f\u043e\u0432\u0435\u0437\u043b\u043e. \u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0434\u0435\u0441\u044c \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c <em>fd<\/em> \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0435\u0433\u043e \u0432\u0430\u043b\u0438\u0434\u043d\u043e\u0441\u0442\u044c. \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430\u043c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438 \u043e\u0442\u043c\u0435\u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u0422.\u0435. \u043f\u0440\u0438 \u043e\u0442\u043a\u0430\u0442\u0435 \u0440\u044f\u0434\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u043d\u043e\u0442\u0430\u0445, \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043d\u0430\u0440\u0443\u0448\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u0431\u0435\u0437 \u043d\u043e\u0442.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v595\/\">V595<\/a> The &#8216;startSegment&#8217; pointer was utilized before it was verified against nullptr. Check lines: 129, 131. notationselectionrange.cpp 129<\/p>\n<pre><code>Ms::Segment* NotationSelectionRange::rangeStartSegment() const {   Ms::Segment* startSegment = score()-&gt;selection().startSegment();    startSegment-&gt;measure()-&gt;firstEnabled();  \/\/ &lt;=    if (!startSegment) {                      \/\/ &lt;=     return nullptr;   }    if (!startSegment-&gt;enabled()) {     startSegment = startSegment-&gt;next1MMenabled();   }   .... } <\/code><\/pre>\n<p>\u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u043a\u043e\u0434\u0430, \u0442\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0439 \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0441\u0442\u0440\u043e\u043a\u0430 \u0441 \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f <em>startSegment<\/em> \u0431\u044b\u043b\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u043f\u043e\u0437\u0436\u0435 \u0438 \u043d\u0435 \u0442\u0443\u0434\u0430 \u2013 \u0434\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f.<\/p>\n<p>\u042d\u0442\u043e \u0431\u044b\u043b\u0438 \u0441\u0430\u043c\u044b\u0435 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0442\u0430\u043a\u043e\u0439 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0438, \u0442.\u043a. \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430 \u043d\u0430 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0442\u0440\u043e\u043a. \u0414\u0440\u0443\u0433\u0438\u0435 \u043c\u0435\u0441\u0442\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0442\u043e\u0438\u0442 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f, \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0441\u043f\u0438\u0441\u043a\u043e\u043c:<\/p>\n<ul>\n<li>\n<p>V595 The &#8216;note&#8217; pointer was utilized before it was verified against nullptr. Check lines: 5932, 5941. importmxmlpass2.cpp 5932<\/p>\n<\/li>\n<li>\n<p>V595 The &#8216;ed&#8217; pointer was utilized before it was verified against nullptr. Check lines: 599, 608. textedit.cpp 599<\/p>\n<\/li>\n<li>\n<p>V595 The &#8216;s&#8217; pointer was utilized before it was verified against nullptr. Check lines: 139, 143. elements.cpp 139<\/p>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v774\/\">V774<\/a> The &#8216;slur&#8217; pointer was used after the memory was released. importgtp-gp6.cpp 2592<\/p>\n<pre><code>void GuitarPro6::readGpif(QByteArray* data) {   ....   if (c) {     slur-&gt;setTick2(c-&gt;tick());     score-&gt;addElement(slur);     legatos[slur-&gt;track()] = 0;   } else {     delete slur;     legatos[slur-&gt;track()] = 0;   }   .... } <\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044e \u0434\u0430\u043d\u043d\u044b\u0435 \u0435\u0449\u0451 \u043c\u043e\u0433\u0443\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u0435\u0436\u043d\u0435\u043c \u043c\u0435\u0441\u0442\u0435, \u0438 \u043e\u0448\u0438\u0431\u043a\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442. \u041d\u043e \u043d\u0430 \u044d\u0442\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f. \u0422\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u0447\u0442\u043e MuseScore \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b. \u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u0438\u043d\u0430\u0447\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438 \u0441\u043c\u0435\u043d\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430. \u0422\u0443\u0442 \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443. \u0415\u0449\u0451 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u0434\u043d\u043e\u0439 \u0432\u0435\u0442\u0432\u0438 \u043a\u043e\u0434\u0430. <\/p>\n<h3>\u0420\u0430\u0437\u043d\u044b\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f<\/h3>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/37e\/6d3\/ad4\/37e6d3ad4bb06b86593e8882dfdc211a.png\" width=\"400\" height=\"326\"><figcaption><\/figcaption><\/figure>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v637\/\">V637<\/a> Two opposite conditions were encountered. The second condition is always false. Check lines: 4439, 4440. exportxml.cpp 4439<\/p>\n<pre><code>virtual Fraction tick() const override { return _tick; }  void ExportMusicXml::hairpin(....) {   ....   if (hp-&gt;tick() != tick) {         writeHairpinText(_xml, hp, hp-&gt;tick() == tick);   }   .... } <\/code><\/pre>\n<p>\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0432\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <em>writeHairpinText<\/em> \u043c\u043e\u0436\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0438\u0442\u044c, \u043f\u0435\u0440\u0435\u0434\u0430\u0432 3-\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>false<\/em>.<\/p>\n<p>\u041c\u0435\u0442\u043e\u0434 <em>tick<\/em> \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code>virtual Fraction tick() const override { return _tick; } <\/code><\/pre>\n<p>\u0422.\u0435. \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0439 \u043a\u043b\u0430\u0441\u0441\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c, \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u044f \u043b\u043e\u0433\u0438\u043a\u0443 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v763\/\">V763<\/a> Parameter &#8216;y&#8217; is always rewritten in function body before being used. tremolo.cpp 287<\/p>\n<pre><code>void Tremolo::layoutOneNoteTremolo(qreal x, qreal y, qreal spatium) {    bool up = chord()-&gt;up();   int line = up ? chord()-&gt;upLine() : chord()-&gt;downLine();   ....   qreal yLine = line + t;   ....   y = yLine * .5 * spatium;    setPos(x, y); } <\/code><\/pre>\n<p>\u041f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u043a\u0438\u043c \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435\u043c \u043c\u0435\u0436\u0434\u0443 \u0435\u0451 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0438 \u0430\u0432\u0442\u043e\u0440\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0412\u0441\u0435\u0433\u0434\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u043e\u0434, \u043a\u043e\u0433\u0434\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u043a\u043e\u0434\u0435 \u0431\u0435\u0437 \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u0439. \u041a\u0430\u043a \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <em>y<\/em>.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v506\/\">V506<\/a> Pointer to local variable &#8216;handle&#8217; is stored outside the scope of this variable. Such a pointer will become invalid. ove.cpp 4391<\/p>\n<pre><code>class BasicParse {   .... protected:   StreamHandle* m_handle;   .... }  bool OvscParse::parse() {   Block* dataBlock = m_chunk-&gt;getDataBlock();   unsigned int blockSize = m_chunk-&gt;getSizeBlock()-&gt;toSize();   StreamHandle handle(dataBlock-&gt;data(), blockSize);   Block placeHolder;    m_handle = &amp;handle;   .... } <\/code><\/pre>\n<p>\u0410\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0430\u0441\u043d\u044b\u0445 \u043c\u0435\u0441\u0442, \u043a\u043e\u0433\u0434\u0430 \u0432 \u043f\u043e\u043b\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0432 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0439.  \u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0442\u0430\u043a\u043e\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u043c\u0443\u0441\u043e\u0440\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<p>\u0412\u0441\u0435 \u0442\u0430\u043a\u0438\u0435 \u043c\u0435\u0441\u0442\u0430 \u043d\u0430\u0448\u043b\u0438\u0441\u044c \u0432 \u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435:<\/p>\n<ul>\n<li>\n<p>V506 Pointer to local variable &#8216;handle&#8217; is stored outside the scope of this variable. Such a pointer will become invalid. ove.cpp 4483<\/p>\n<\/li>\n<li>\n<p>V506 Pointer to local variable &#8216;handle&#8217; is stored outside the scope of this variable. Such a pointer will become invalid. ove.cpp 4930<\/p>\n<\/li>\n<li>\n<p>V506 Pointer to local variable &#8216;handle&#8217; is stored outside the scope of this variable. Such a pointer will become invalid. ove.cpp 9291<\/p>\n<\/li>\n<li>\n<p>V506 Pointer to local variable &#8216;handle&#8217; is stored outside the scope of this variable. Such a pointer will become invalid. ove.cpp 9507<\/p>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v519\/\">V519<\/a> The &#8216;savedExtension.status&#8217; variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 349, 352. extensionsservice.cpp 352<\/p>\n<pre><code>void ExtensionsService::th_refreshExtensions() {   ....   if (savedExtension.version &lt; extension.version) {       savedExtension.status = ExtensionStatus::NeedUpdate;   }    savedExtension.status = ExtensionStatus::Installed;   .... } <\/code><\/pre>\n<p>\u041f\u043e\u0445\u043e\u0436\u0435, \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u0437-\u0437\u0430 \u043e\u0448\u0438\u0431\u043a\u0438: \u0441\u0442\u0430\u0442\u0443\u0441 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <em>Installed<\/em>.<\/p>\n<p>\u0412\u0435\u0441\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u043c\u0435\u0441\u0442 \u0441 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044c\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445:<\/p>\n<ul>\n<li>\n<p>V519 The &#8216;lyrNote&#8217; variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 962, 972. importgtp-gp6.cpp 972<\/p>\n<\/li>\n<li>\n<p>V519 The &#8216;_crossMeasure&#8217; variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 2545, 2550. chord.cpp 2550<\/p>\n<\/li>\n<li>\n<p>V519 The &#8216;bt&#8217; variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 417, 418. chordrest.cpp 418<\/p>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v612\/\">V612<\/a> An unconditional &#8216;return&#8217; within a loop. noteinputbarmodel.cpp 371<\/p>\n<pre><code>int NoteInputBarModel::resolveCurrentVoiceIndex() const {   ....   for (const Element* element: selection()-&gt;elements()) {       return element-&gt;voice();   }   .... } <\/code><\/pre>\n<p>\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0439\u0442\u0438 \u043c\u0438\u043c\u043e \u0446\u0438\u043a\u043b\u0430 \u0438\u0437 \u043e\u0434\u043d\u043e\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u0438 \u043d\u0435 \u0437\u0430\u0434\u0430\u0442\u044c\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c: &#171;\u0417\u0430\u0447\u0435\u043c?&#187;.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v1009\/\">V1009<\/a> Check the array initialization. Only the first element is initialized explicitly. The rest elements are initialized with zeros. instrumentstypes.h 135<\/p>\n<pre><code>static constexpr int MAX_STAVES  = 4;  enum class BracketType : signed char {     NORMAL, BRACE, SQUARE, LINE, NO_BRACKET = -1 };  struct Instrument {   ....   BracketType bracket[MAX_STAVES] = { BracketType::NO_BRACKET };   .... } <\/code><\/pre>\n<p>\u041f\u043e \u043c\u043d\u0435\u043d\u0438\u044e \u0430\u0432\u0442\u043e\u0440\u0430 \u043a\u043e\u0434\u0430, \u043c\u0430\u0441\u0441\u0438\u0432 <em>bracket<\/em> \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 <em>NO_BRACKET<\/em>. \u0427\u0438\u0441\u043b\u043e\u0432\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f &#8212; -1. \u0410 \u043f\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u0442\u0430\u043a\u043e\u0433\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c, \u0430 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u2013 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 0. \u0410 \u044d\u0442\u043e <em>NORMAL<\/em>, \u0430 \u043d\u0435 <em>NO_BRACKET<\/em>. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0442\u0430\u043a\u0438\u0435 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043d\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c.<\/p>\n<h3>\u041e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 Open Source \u0432 \u0446\u0435\u043b\u043e\u043c<\/h3>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c, \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u0443\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f. \u0418\u043d\u0430\u0447\u0435 \u043c\u044b \u0431\u044b \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 <a href=\"https:\/\/www.viva64.com\/ru\/inspections\/\">\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u0437\u043e\u0440\u043e\u0432<\/a> \u043e\u0448\u0438\u0431\u043e\u043a \u0438\u0437 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432. \u0415\u0449\u0451 \u043e\u0434\u043d\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043f\u043e\u0440\u0442\u0438\u0442 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u0434\u0430, \u2013 \u044d\u0442\u043e \u043a\u043e\u0447\u0435\u0432\u0430\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043e\u043a \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442. \u0421\u0430\u043c\u044b\u0439 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u043d\u0430 \u043d\u0430\u0448\u0435\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u2013 \u044d\u0442\u043e \u043a\u043e\u0434 \u0438\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430 <a href=\"https:\/\/www.viva64.com\/ru\/b\/0574\/\">Amazon Lumberyard<\/a>, \u0433\u0434\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0432\u0437\u044f\u043b\u0438 \u0437\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u043a\u043e\u0434 CryEngine \u0441 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438. \u041f\u0440\u0438\u0447\u0451\u043c \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430 \u043e\u0448\u0438\u0431\u043a\u0438 \u0431\u044b\u043b\u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b.<\/p>\n<p>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 MuseScore \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0441 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439. \u0412 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <a href=\"https:\/\/github.com\/ekg\/intervaltree\">intervaltree<\/a>. \u0422\u0430\u043c \u043d\u0430\u0448\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430:<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v630\/\">V630<\/a> The &#8216;malloc&#8217; function is used to allocate memory for an array of objects which are classes containing constructors and destructors. IntervalTree.h 70<\/p>\n<pre><code>IntervalTree(const intervalTree&amp; other) {     center = other.center;     intervals = other.intervals;     if (other.left) {         left = (intervalTree*) malloc(sizeof(intervalTree));  \/\/ &lt;=         *left = *other.left;     } else {         left = NULL;     }     if (other.right) {         right = new intervalTree();         *right = *other.right;     } else {         right = NULL;     } }  IntervalTree&amp; operator=(const intervalTree&amp; other) {     center = other.center;     intervals = other.intervals;     if (other.left) {         left = new intervalTree();                            \/\/ &lt;=         *left = *other.left;     } else {         left = NULL;     }     if (other.right) {         right = new intervalTree();                           \/\/ &lt;=         *right = *other.right;     } else {         right = NULL;     }     return *this; } <\/code><\/pre>\n<p>\u0412 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u043f\u0440\u0438\u0431\u0435\u0433\u043b\u0438 \u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <em>malloc<\/em> \u0434\u043b\u044f \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u043e\u0434 \u043a\u043b\u0430\u0441\u0441. \u0425\u043e\u0442\u044f \u0432\u043e \u0432\u0441\u0435\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <em>new<\/em>. \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438 \u0438\u0437 C++ &#8212; <em>new<\/em>, \u0442.\u043a. \u043a\u043b\u0430\u0441\u0441 <em>intervalTree<\/em> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u0438 \u0434\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440.<\/p>\n<p>\u0418, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044f\u0441\u044c \u043a \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0443 \u043f\u0440\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0432 \u0446\u0435\u043b\u043e\u043c, \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b\u0438 2 \u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434. \u041d\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u044d\u0442\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u0438. \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u043d\u0430 \u0436\u0438\u0432\u0451\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043c\u043d\u043e\u0433\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0445 \u0444\u043e\u0440\u043a\u0430\u0445 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445.<\/p>\n<p>\u041d\u0435 \u0437\u0430\u0431\u044b\u043b\u0438 \u0435\u0449\u0451 \u044d\u0442\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438?<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v523\/\">V523<\/a> The &#8216;then&#8217; statement is equivalent to the &#8216;else&#8217; statement. bsp.cpp 194<\/p>\n<pre><code>QString BspTree::debug(int index) const {   ....   if (node-&gt;type == Node::Type::HORIZONTAL) {     tmp += debug(firstChildIndex(index));     tmp += debug(firstChildIndex(index) + 1);   } else {     tmp += debug(firstChildIndex(index));     tmp += debug(firstChildIndex(index) + 1);   }   .... } <\/code><\/pre>\n<p>\u0410 \u043e\u043d \u0431\u044b\u043b \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d \u0438\u0437 \u043a\u043e\u0434\u0430 <a href=\"https:\/\/github.com\/qt\/qtbase\">QtBase<\/a> \u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code>QString QGraphicsSceneBspTree::debug(int index) const {     const Node *node = &amp;nodes.at(index);      QString tmp;     if (node-&gt;type == Node::Leaf) {         QRectF rect = rectForIndex(index);         if (!leaves[node-&gt;leafIndex].isEmpty()) {             tmp += QString::fromLatin1(\"[%1, %2, %3, %4] contains %5 items\\n\")                    .arg(rect.left()).arg(rect.top())                    .arg(rect.width()).arg(rect.height())                    .arg(leaves[node-&gt;leafIndex].size());         }     } else {         if (node-&gt;type == Node::Horizontal) {             tmp += debug(firstChildIndex(index));             tmp += debug(firstChildIndex(index) + 1);         } else {             tmp += debug(firstChildIndex(index));             tmp += debug(firstChildIndex(index) + 1);         }     }      return tmp; } <\/code><\/pre>\n<p>\u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u043a\u043e\u0434 \u043d\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u043d\u0438 \u0432 MuseScore, \u043d\u0438 \u0432 QtBase.<\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fe5\/456\/5d0\/fe54565d035807a20eb37c6718280298.png\" width=\"400\" height=\"290\"><figcaption><\/figcaption><\/figure>\n<p>\u041c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043e\u0444\u0442 \u0443\u0436\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u0430\u0441\u0441\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442. \u0412\u0441\u044f \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043c\u0435\u0434\u0438\u0430\u0438\u043d\u0434\u0443\u0441\u0442\u0440\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u044b\u043c\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u043c\u0438 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043c\u0443\u0437\u044b\u043a\u0438 \u0438 \u0430\u0443\u0434\u0438\u043e\u0437\u0430\u043f\u0438\u0441\u0435\u0439. \u041d\u043e \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u0432 \u044d\u0442\u0443 \u0438\u043d\u0434\u0443\u0441\u0442\u0440\u0438\u044e \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u0430 \u043a\u0443\u043b\u044c\u0442\u0443\u0440\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043a\u043e\u0434\u0430. \u042d\u0442\u043e \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 <a href=\"https:\/\/www.viva64.com\/ru\/pvs-studio\/\">PVS-Studio<\/a> \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0445 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u0443\u0437\u044b\u043a\u043e\u0439. \u041e\u0434\u043d\u0430\u0436\u0434\u044b \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043e\u0431\u0437\u043e\u0440 \u043a\u043e\u0434\u0430 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Steinberg SDK \u043e\u0442 \u043d\u0435\u043c\u0435\u0446\u043a\u043e\u0439 \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Steinberg Media Technologies GmbH \u0438 \u0442\u043e\u0436\u0435 <a href=\"https:\/\/www.viva64.com\/ru\/b\/0541\/\">\u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0438<\/a> \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u0435\u0444\u0435\u043a\u0442\u043e\u0432 \u043a\u043e\u0434\u0430.<\/p>\n<p>\u0421\u0440\u0435\u0434\u0438 \u043d\u0430\u0448\u0438\u0445 <a href=\"https:\/\/www.viva64.com\/ru\/customers\/\">\u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432<\/a> \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043c\u043d\u043e\u0433\u043e \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u0441\u0442\u0443\u0434\u0438\u0439, \u0431\u0430\u043d\u043a\u043e\u0432 \u0438 \u043a\u0440\u0443\u043f\u043d\u044b\u0445 IT-\u0433\u0438\u0433\u0430\u043d\u0442\u043e\u0432, \u0430 \u0432\u043e\u0442 \u043a\u0440\u0443\u043f\u043d\u044b\u0445 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439 \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0434\u0443\u0441\u0442\u0440\u0438\u0438 \u043d\u0435\u0442. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0438 \u044d\u0442\u0438\u0445 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439 \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u0438 \u0445\u043e\u0442\u044f \u0431\u044b \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u044e\u0442 <a href=\"https:\/\/www.viva64.com\/ru\/pvs-studio-download\/\">\u0442\u0440\u0438\u0430\u043b<\/a> \u043d\u0430 \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u0441 \u0430\u043d\u0433\u043b\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0435\u0439, \u0442\u043e \u043f\u0440\u043e\u0448\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434: Svyatoslav Razmyslov. <a href=\"https:\/\/habr.com\/en\/company\/pvs-studio\/blog\/545624\/\">Short-lived Music or MuseScore Code Analysis<\/a>. <\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/pvs-studio\/blog\/545626\/\"> https:\/\/habr.com\/ru\/company\/pvs-studio\/blog\/545626\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0412 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0444\u0435\u0440\u0430\u0445 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435, \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u044f\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u043d\u0430\u043d\u0438\u044f\u043c\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0441\u043a\u0438\u0439 \u0441\u043e\u0444\u0442 \u0438\u043b\u0438 \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u044b\u0439, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u043e\u0439\u0434\u0451\u0442 \u0440\u0435\u0447\u044c \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435. \u0422\u0443\u0442 \u043d\u0443\u0436\u043d\u044b \u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0444\u0438\u043b\u044c\u043d\u044b\u0445 \u044d\u043a\u0441\u043f\u0435\u0440\u0442\u043e\u0432. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0443\u0434\u043e\u0440\u043e\u0436\u0438\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u043d\u043e\u0433\u0434\u0430 \u044d\u043a\u043e\u043d\u043e\u043c\u044f\u0442 \u043d\u0430 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u0434\u0430. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 MuseScore, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0436\u043d\u0430 \u044d\u043a\u0441\u043f\u0435\u0440\u0442\u0438\u0437\u0430 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043a\u043e\u0434\u0430, \u0441\u043a\u0440\u0430\u0441\u0438\u0432 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0435\u043a\u0441\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0441\u043a\u0438\u043c \u0438 \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u044e\u043c\u043e\u0440\u043e\u043c.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<h3>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h3>\n<p><a href=\"https:\/\/musescore.com\/\">MuseScore<\/a> \u2014 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043d\u043e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440\u0442\u0438\u0442\u0443\u0440 \u0434\u043b\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c Windows, Mac OS X \u0438 Linux. MuseScore \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u043e\u0442\u044b \u043a\u0430\u043a \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430, \u0442\u0430\u043a \u0438 \u0441 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 MIDI-\u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u043c\u043f\u043e\u0440\u0442 \u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0430\u0445 MIDI, MusicXML, LilyPond, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0438\u043c\u043f\u043e\u0440\u0442 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0430\u0445 MusE, Capella \u0438 Band-in-a-Box. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043c\u043e\u0436\u0435\u0442 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0442\u0438\u0442\u0443\u0440\u044b \u0432 \u0444\u0430\u0439\u043b\u044b PDF, SVG \u0438 PNG \u043b\u0438\u0431\u043e \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b LilyPond \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0439 \u0442\u043e\u0447\u043d\u043e\u0439 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0438.<\/p>\n<p>\u0420\u0430\u043d\u0435\u0435 \u043c\u044b \u0443\u0436\u0435 <a href=\"https:\/\/www.viva64.com\/ru\/b\/0530\/\">\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0438<\/a> \u043a\u043e\u0434 MuseScore \u0432 2017 \u0433\u043e\u0434\u0443. \u0422\u043e\u0433\u0434\u0430 \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0445\u0432\u0430\u0442\u0438\u043b\u043e \u043d\u0430 \u0446\u0435\u043b\u044b\u0439 \u0446\u0438\u043a\u043b \u0438\u0437 5 \u0441\u0442\u0430\u0442\u0435\u0439 \u0441 \u043e\u0431\u0437\u043e\u0440\u043e\u043c \u043a\u043e\u0434\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043c\u0443\u0437\u044b\u043a\u0438.<\/p>\n<p>MuseScore \u2013 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u0442\u0430\u044f \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u0435\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u043e\u0442\u044b \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0439 \u043c\u0435\u043b\u043e\u0434\u0438\u0438. \u041a\u0440\u043e\u043c\u0435 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u0430\u0439\u0442\u043e\u043c \u0438\u043b\u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c. \u0421\u0435\u0439\u0447\u0430\u0441 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043d\u043e\u0442 \u0441\u0442\u0430\u043b\u0430 \u043f\u043b\u0430\u0442\u043d\u043e\u0439 \u043f\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0435, \u043d\u043e \u044d\u0442\u043e \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u044d\u0442\u0430\u043f \u0432 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430. \u0411\u0443\u0434\u0435\u043c \u043d\u0430\u0434\u0435\u044f\u0442\u044c\u0441\u044f, \u0447\u0430\u0441\u0442\u044c \u0437\u0430\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u043d\u0430 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043a\u043e\u0434\u0430. \u041f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0440\u0430 \u0443\u0434\u0435\u043b\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0434\u0430\u043b\u0435\u0435.<\/p>\n<h3>Copy-paste code<\/h3>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v501\/\">V501<\/a> There are identical sub-expressions to the left and to the right of the &#8216;==&#8217; operator: desiredLen == desiredLen importmidi_simplify.cpp 44<\/p>\n<pre><code>bool areDurationsEqual(   const QList &gt;&amp; durations,   const ReducedFraction&amp; desiredLen) {   ReducedFraction sum(0, 1);   for (const auto&amp; d: durations) {     sum += ReducedFraction(d.second.fraction()) \/ d.first;   }    return desiredLen == desiredLen; } <\/code><\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0435\u0439 \u043d\u043e\u0442 \u0438\u043b\u0438 \u0447\u0435\u0433\u043e-\u0442\u043e \u0435\u0449\u0451 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \u0412\u0441\u0451 \u0438\u0437-\u0437\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <em>desiredLen<\/em> \u0432 \u0441\u0430\u043c\u043e\u043c \u043a\u043e\u043d\u0446\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u0438\u043c:<\/p>\n<pre><code>return desiredLen == sum; <\/code><\/pre>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v501\/\">V501<\/a> There are identical sub-expressions to the left and to the right of the &#8216;-&#8216; operator: i &#8212; i textbase.cpp 1986<\/p>\n<pre><code>void TextBase::layout1() {   ....   for (int i = 0; i &lt; rows(); ++i) {     TextBlock* t = &amp;_layout[i];     t-&gt;layout(this);     const QRectF* r = &amp;t-&gt;boundingRect();      if (r-&gt;height() == 0) {       r = &amp;_layout[i - i].boundingRect();    \/\/ &lt;=     }     y += t-&gt;lineSpacing();     t-&gt;setY(y);     bb |= r-&gt;translated(0.0, y);   }   .... } <\/code><\/pre>\n<p>\u0418\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 <em>layout<\/em> \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0435\u0440\u0451\u0442\u0441\u044f \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e\u0449\u0435\u0435 \u0438\u043d\u0434\u0435\u043a\u0441, \u0437\u0430\u043a\u0440\u0430\u043b\u0430\u0441\u044c \u043e\u0448\u0438\u0431\u043a\u0430.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v523\/\">V523<\/a> The &#8216;then&#8217; statement is equivalent to the &#8216;else&#8217; statement. bsp.cpp 194<\/p>\n<pre><code>QString BspTree::debug(int index) const {   ....   if (node-&gt;type == Node::Type::HORIZONTAL) {     tmp += debug(firstChildIndex(index));     tmp += debug(firstChildIndex(index) + 1);   } else {     tmp += debug(firstChildIndex(index));     tmp += debug(firstChildIndex(index) + 1);   }   .... } <\/code><\/pre>\n<p>\u041e\u0442\u043b\u0430\u0434\u043a\u0430 \u043a\u043e\u0434\u0430 \u2013 \u044d\u0442\u043e \u0443\u0436\u0435 \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u043d\u0435\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u043a\u043e\u0434\u0435. \u0423\u0441\u0443\u0433\u0443\u0431\u0438\u0442\u044c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 \u0432 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u043e\u043c \u043a\u043e\u0434\u0435. \u0417\u0434\u0435\u0441\u044c \u043a\u043e\u0434 \u0434\u0432\u0443\u0445 \u0432\u0435\u0442\u0432\u0435\u0439 \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u0435\u043d. \u041d\u0435\u0441\u043b\u043e\u0436\u043d\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043a\u043e\u0434 \u0431\u044b\u043b \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0430 \u0432\u043d\u0435\u0441\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432\u043e \u0432\u0442\u043e\u0440\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u043a\u043e\u0434\u0430 \u0437\u0430\u0431\u044b\u043b\u0438.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v524\/\">V524<\/a> It is odd that the body of &#8216;downLine&#8217; function is fully equivalent to the body of &#8216;upLine&#8217; function. rest.cpp 718<\/p>\n<pre><code>int Rest::upLine() const {     qreal _spatium = spatium();     return lrint((pos().y() + bbox().top() + _spatium) * 2 \/ _spatium); }  int Rest::downLine() const {     qreal _spatium = spatium();     return lrint((pos().y() + bbox().top() + _spatium) * 2 \/ _spatium); } <\/code><\/pre>\n<p>\u0412 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 <em>upLine<\/em> \u0438 <em>downLine<\/em> \u043e\u0442\u0440\u0430\u0436\u0435\u043d \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u044b\u0439 \u0441\u043c\u044b\u0441\u043b, \u043d\u043e \u044d\u0442\u043e \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043f\u043e\u0434\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u044d\u0442\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0438\u043c\u0435\u0435\u0442 \u043c\u0435\u0441\u0442\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437-\u0437\u0430 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v778\/\">V778<\/a> Two similar code fragments were found. Perhaps, this is a typo and &#8216;description&#8217; variable should be used instead of &#8216;name&#8217;. instrumentsreader.cpp 407<\/p>\n<pre><code>void InstrumentsReader::fillByDeffault(Instrument&amp; instrument) const {   ....   if (instrument.name.isEmpty() &amp;&amp; !instrument.longNames.isEmpty()) {       instrument.name = instrument.longNames[0].name();   }   if (instrument.description.isEmpty() &amp;&amp; !instrument.longNames.isEmpty()) {       instrument.description = instrument.longNames[0].name();   }   .... } <\/code><\/pre>\n<p>\u041f\u043e\u043b\u044f <em>instrument.name<\/em> \u0438* instrument.description* \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043a\u043e\u0434 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c. \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f &#171;name&#187; \u0438 &#171;description&#187; \u2013 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u043e \u0441\u043c\u044b\u0441\u043b\u0443 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0442\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u0438\u043d\u0434\u0435\u043a\u0441, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043e\u0431\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u043a \u043c\u0430\u0441\u0441\u0438\u0432\u0443 <em>longNames<\/em>.<\/p>\n<h3>\u0414\u0435\u0431\u044e\u0442 \u043d\u043e\u0432\u044b\u0445 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a<\/h3>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0421 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u044b \u043d\u0430\u0434\u0435\u043b\u0430\u043b\u0438 \u043d\u043e\u0432\u044b\u0445 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043c\u043e\u0433\u043b\u0438 \u043d\u0430\u0439\u0442\u0438 \u0435\u0449\u0451 \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v1063\/\">V1063<\/a> The modulo by 1 operation is meaningless. The result will always be zero. lyrics.h 85<\/p>\n<pre><code>class Lyrics final : public TextBase {   ....   bool isEven() const { return _no % 1; }   .... } <\/code><\/pre>\n<p>\u041e\u0447\u0435\u043d\u044c \u0437\u0430\u0431\u0430\u0432\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u043d\u0430\u0448\u043b\u0430\u0441\u044c \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043d\u043e\u0432\u044b\u0445 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a. \u0424\u0443\u043d\u043a\u0446\u0438\u044f <em>isEven<\/em> \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c <em>true<\/em>, \u0435\u0441\u043b\u0438 \u0447\u0438\u0441\u043b\u043e \u0447\u0451\u0442\u043d\u043e\u0435, \u0438\u043d\u0430\u0447\u0435 \u2013 <em>false<\/em> (\u043d\u0435\u0447\u0451\u0442\u043d\u043e\u0435). \u041d\u043e, \u043f\u043e \u0444\u0430\u043a\u0442\u0443, \u0438\u0437-\u0437\u0430 \u0432\u0437\u044f\u0442\u0438\u044f \u043e\u0441\u0442\u0430\u0442\u043a\u0430 \u043e\u0442 1, \u0430 \u043d\u0435 2 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>false<\/em>. \u0422.\u0435. \u0432\u0441\u0435 \u0447\u0438\u0441\u043b\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u043d\u0435\u0447\u0451\u0442\u043d\u044b\u0435.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v1065\/\">V1065<\/a> Expression can be simplified, check &#8216;1&#8217; and similar operands. scorediff.cpp 444<\/p>\n<pre><code>QString MscxModeDiff::getOuterLines(const QString&amp; str, int lines, bool start) {     lines = qAbs(lines);     const int secIdxStart = start ? 0 : (-1 - (lines - 1));     .... } <\/code><\/pre>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u044d\u0442\u043e \u043d\u0435 \u043e\u0448\u0438\u0431\u043a\u0430. \u041d\u043e \u0438\u043c\u0435\u044e\u0449\u0438\u0439\u0441\u044f \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0434\u043e \u0442\u0430\u043a\u043e\u0433\u043e:<\/p>\n<pre><code>const int secIdxStart = start ? 0 : -lines ; <\/code><\/pre>\n<p>\u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u0442\u0440\u0430\u043d\u043d\u043e. <\/p>\n<h3>\u0412\u0435\u0447\u043d\u0430\u044f \u043a\u043b\u0430\u0441\u0441\u0438\u043a\u0430: \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0432 C++<\/h3>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v522\/\">V522<\/a> Dereferencing of the null pointer &#8216;family&#8217; might take place. instrtemplate.cpp 356<\/p>\n<pre><code>void InstrumentTemplate::write(XmlWriter&amp; xml) const {   ....   if (!family) {     xml.tag(\"family\", family-&gt;id);   }   xml.etag(); } <\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u0433\u0430 &#171;family&#187; \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043a\u0430\u0442\u0430\u0441\u0442\u0440\u043e\u0444\u043e\u0439 \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432 \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043b\u0438\u0448\u043d\u0435\u0435 \u043e\u0442\u0440\u0438\u0446\u0430\u043d\u0438\u0435.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v522\/\">V522<\/a> Dereferencing of the null pointer &#8216;destinationMeasure&#8217; might take place. score.cpp 4279<\/p>\n<pre><code>ChordRest* Score::cmdNextPrevSystem(ChordRest* cr, bool next) {   ....   auto destinationMeasure = currentSystem-&gt;firstMeasure();   ....   if (!(destinationMeasure = destinationMeasure-&gt;prevMeasure())) {     if (!(destinationMeasure = destinationMeasure-&gt;prevMeasureMM())) {         return cr;     }   }   .... } <\/code><\/pre>\n<p>\u041f\u043e\u0445\u043e\u0436\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043d\u043e \u043c\u0435\u043d\u0435\u0435 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u0430\u044f. \u041f\u0440\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043a \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044e <em>destinationMeasure<\/em> \u0432\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u043c \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v595\/\">V595<\/a> The &#8216;fd&#8217; pointer was utilized before it was verified against nullptr. Check lines: 5365, 5366. edit.cpp 5365<\/p>\n<pre><code>void Score::undoAddElement(Element* element) {   ....   FretDiagram* fd = toFretDiagram(ne);   Harmony* fdHarmony = fd-&gt;harmony();   if (fd) {     fdHarmony-&gt;setScore(score);     fdHarmony-&gt;setSelected(false);     fdHarmony-&gt;setTrack(staffIdx * VOICES + element-&gt;voice());   }   .... } <\/code><\/pre>\n<p>Fret Diagram (\u0438\u043b\u0438 FretBoard) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u043c\u0435\u043b\u043e\u0434\u0438\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0433\u0438\u0442\u0430\u0440\u0438\u0441\u0442\u0430\u043c\u0438. \u0418 \u0438\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0435 \u043f\u043e\u0432\u0435\u0437\u043b\u043e. \u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0434\u0435\u0441\u044c \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c <em>fd<\/em> \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0435\u0433\u043e \u0432\u0430\u043b\u0438\u0434\u043d\u043e\u0441\u0442\u044c. \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430\u043c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438 \u043e\u0442\u043c\u0435\u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u0422.\u0435. \u043f\u0440\u0438 \u043e\u0442\u043a\u0430\u0442\u0435 \u0440\u044f\u0434\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u043d\u043e\u0442\u0430\u0445, \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043d\u0430\u0440\u0443\u0448\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u0431\u0435\u0437 \u043d\u043e\u0442.<\/p>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v595\/\">V595<\/a> The &#8216;startSegment&#8217; pointer was utilized before it was verified against nullptr. Check lines: 129, 131. notationselectionrange.cpp 129<\/p>\n<pre><code>Ms::Segment* NotationSelectionRange::rangeStartSegment() const {   Ms::Segment* startSegment = score()-&gt;selection().startSegment();    startSegment-&gt;measure()-&gt;firstEnabled();  \/\/ &lt;=    if (!startSegment) {                      \/\/ &lt;=     return nullptr;   }    if (!startSegment-&gt;enabled()) {     startSegment = startSegment-&gt;next1MMenabled();   }   .... } <\/code><\/pre>\n<p>\u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u043a\u043e\u0434\u0430, \u0442\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0439 \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0441\u0442\u0440\u043e\u043a\u0430 \u0441 \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f <em>startSegment<\/em> \u0431\u044b\u043b\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u043f\u043e\u0437\u0436\u0435 \u0438 \u043d\u0435 \u0442\u0443\u0434\u0430 \u2013 \u0434\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f.<\/p>\n<p>\u042d\u0442\u043e \u0431\u044b\u043b\u0438 \u0441\u0430\u043c\u044b\u0435 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0442\u0430\u043a\u043e\u0439 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0438, \u0442.\u043a. \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430 \u043d\u0430 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0442\u0440\u043e\u043a. \u0414\u0440\u0443\u0433\u0438\u0435 \u043c\u0435\u0441\u0442\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0442\u043e\u0438\u0442 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f, \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0441\u043f\u0438\u0441\u043a\u043e\u043c:<\/p>\n<ul>\n<li>\n<p>V595 The &#8216;note&#8217; pointer was utilized before it was verified against nullptr. Check lines: 5932, 5941. importmxmlpass2.cpp 5932<\/p>\n<\/li>\n<li>\n<p>V595 The &#8216;ed&#8217; pointer was utilized before it was verified against nullptr. Check lines: 599, 608. textedit.cpp 599<\/p>\n<\/li>\n<li>\n<p>V595 The &#8216;s&#8217; pointer was utilized before it was verified against nullptr. Check lines: 139, 143. elements.cpp 139<\/p>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v774\/\">V774<\/a> The &#8216;slur&#8217; pointer was used after the memory was released. importgtp-gp6.cpp 2592<\/p>\n<pre><code>void GuitarPro6::readGpif(QByteArray* data) {   ....   if (c) {     slur-&gt;setTick2(c-&gt;tick());     score-&gt;addElement(slur);     legatos[slur-&gt;track()] = 0;   } else {     delete slur;     legatos[slur-&gt;track()] = 0;   }   .... } <\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044e \u0434\u0430\u043d\u043d\u044b\u0435 \u0435\u0449\u0451 \u043c\u043e\u0433\u0443\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u0435\u0436\u043d\u0435\u043c \u043c\u0435\u0441\u0442\u0435, \u0438 \u043e\u0448\u0438\u0431\u043a\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442. \u041d\u043e \u043d\u0430 \u044d\u0442\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f. \u0422\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u0447\u0442\u043e MuseScore \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b. \u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u0438\u043d\u0430\u0447\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438 \u0441\u043c\u0435\u043d\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430. \u0422\u0443\u0442 \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443. \u0415\u0449\u0451 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u0434\u043d\u043e\u0439 \u0432\u0435\u0442\u0432\u0438 \u043a\u043e\u0434\u0430. <\/p>\n<h3>\u0420\u0430\u0437\u043d\u044b\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f<\/h3>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p><a href=\"https:\/\/www.viva64.com\/ru\/w\/v637\/\">V637<\/a> Two opposite conditions were encountered. The second condition is always false. Check lines: 4439, 4440. exportxml.cpp 4439<\/p>\n<pre><code>virtual Fraction tick() const override { return _tick; }  void ExportMusicXml::hairpin(....) {   ....   if (hp-&gt;tick() != tick) {         writeHairpinText(_xml, hp, hp-&gt;tick() == tick);   }   .... } <\/code><\/pre>\n<p>\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e,<\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-319096","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/319096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=319096"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/319096\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=319096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=319096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=319096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}