Skip to content

Commit

Permalink
Merge pull request #23287 from cbjeukendrup/non_unity_and_warnings
Browse files Browse the repository at this point in the history
Fix non-unity build and fix compiler warnings
  • Loading branch information
cbjeukendrup authored Jun 18, 2024
2 parents 53d0c44 + fed4afe commit 2cb2296
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/engraving/rendering/dev/alignmentlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void AlignmentLayout::alignItems(const std::vector<EngravingItem*>& elements, co

double outermostY = 0.0;
bool firstItem = true;
auto computeOutermostY = [&outermostY, &firstItem, &alignedItems](EngravingItem* item) {
auto computeOutermostY = [&outermostY, &firstItem](EngravingItem* item) {
double curY = yOpticalCenter(item);
if (firstItem) {
outermostY = curY;
Expand Down
3 changes: 1 addition & 2 deletions src/engraving/rendering/dev/tlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3206,9 +3206,8 @@ void TLayout::layoutHairpinSegment(HairpinSegment* item, LayoutContext& ctx)
}

// rebase vertical offset on drag
double rebase = 0.0;
if (ldata->offsetChanged() != OffsetChange::NONE) {
rebase = Autoplace::rebaseOffset(item, ldata);
Autoplace::rebaseOffset(item, ldata);
}

if (item->autoplace()) {
Expand Down
2 changes: 0 additions & 2 deletions src/framework/update/internal/updatescenario.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
#include "defer.h"
#include "log.h"

static constexpr int AUTO_CHECK_UPDATE_INTERVAL = 1000;

using namespace muse;
using namespace muse::update;
using namespace muse::actions;
Expand Down
1 change: 1 addition & 0 deletions src/framework/vst/internal/fx/vstfxprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include "vstfxprocessor.h"

using namespace muse;
using namespace muse::vst;
using namespace muse::audio;

Expand Down
1 change: 1 addition & 0 deletions src/framework/vst/internal/vstpluginmetareader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include "log.h"

using namespace muse;
using namespace muse::audio;
using namespace muse::vst;

Expand Down
1 change: 1 addition & 0 deletions src/framework/vst/internal/vstpluginsscanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include "log.h"

using namespace muse;
using namespace muse::vst;

/**
Expand Down
1 change: 1 addition & 0 deletions src/importexport/mei/internal/meiimporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include "engraving/dom/lyrics.h"
#include "engraving/dom/marker.h"
#include "engraving/dom/measure.h"
#include "engraving/dom/measurerepeat.h"
#include "engraving/dom/note.h"
#include "engraving/dom/ornament.h"
#include "engraving/dom/ottava.h"
Expand Down
2 changes: 1 addition & 1 deletion src/importexport/mei/internal/meiimporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class MeiImporter
bool readFermata(pugi::xml_node fermataNode, engraving::Measure* measure);
bool readHairpin(pugi::xml_node hairpinNode, engraving::Measure* measure);
bool readHarm(pugi::xml_node harmNode, engraving::Measure* measure);
bool readLv(pugi::xml_node lvNode, Measure* measure);
bool readLv(pugi::xml_node lvNode, engraving::Measure* measure);
bool readMordent(pugi::xml_node mordentNode, engraving::Measure* measure);
bool readOctave(pugi::xml_node octaveNode, engraving::Measure* measure);
bool readOrnam(pugi::xml_node ornamNode, engraving::Measure* measure);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,8 @@ static bool overrideTextStyleForComposer(const String& creditString)
// addText2
//---------------------------------------------------------

static void scaleTitle(Score* score, Text* text);

/**
Add text \a strTxt to VBox \a vbx using Tid \a stl.
Also sets Align and Yoff.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ void determineTupletFractionAndFullDuration(const Fraction duration, Fraction& f
Fraction missingTupletDuration(const Fraction duration);
bool isLikelyCreditText(const String& text, const bool caseInsensitive);
bool isLikelySubtitleText(const String& text, const bool caseInsensitive);
static void scaleTitle(Score* score, Text* t);

//---------------------------------------------------------
// MusicXMLParserPass1
Expand Down

0 comments on commit 2cb2296

Please sign in to comment.