[TD]fix errors in MS CI

- apparently the "or" alternative to "||" is not supported
  by MS but is part of the c++ specification:
  https://en.cppreference.com/w/cpp/language/operator_alternative

- also missing TechDrawExport
This commit is contained in:
wandererfan
2023-11-30 20:22:36 -05:00
committed by WandererFan
parent d4e1731716
commit 2010acc142
2 changed files with 2 additions and 2 deletions

View File

@@ -127,7 +127,7 @@ QPen LineGenerator::getLinePen(size_t lineNumber, double nominalLineWidth)
// there are some lines with numbers >1 that are also continuous, and
// a dash pattern is not applicable.
std::string naToken{"n/a"};
if (elements.empty() or elements.front() == naToken) {
if (elements.empty() || elements.front() == naToken) {
// plain boring solid line (or possibly an invalid line number)
linePen.setStyle(Qt::SolidLine);
return linePen;

View File

@@ -44,7 +44,7 @@
namespace TechDraw {
class LineGenerator {
class TechDrawExport LineGenerator {
public:
LineGenerator();
~LineGenerator() = default;