Skip to content

Commit 521cb00

Browse files
committed
Fixed warnings.
1 parent 2c89265 commit 521cb00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/project.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2242,7 +2242,7 @@ bool Project::ExportPOVRay(const QString& FileName)
22422242
if (sscanf(Line,"%128s%128s%10s", Src, Dst, Flags) != 3)
22432243
continue;
22442244

2245-
strncat(Src, ".dat", 4);
2245+
strcat(Src, ".dat");
22462246

22472247
PieceInfo* Info = Library->FindPiece(Src, nullptr, false, false);
22482248
if (!Info)

qt/lc_qpreferencesdialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ void lcQPreferencesDialog::on_KeyboardFilterEdit_textEdited(const QString& Text)
10021002
{
10031003
std::function<bool(QTreeWidgetItem*,bool)> ShowItems = [&ShowItems, &Text](QTreeWidgetItem* ParentItem, bool ForceVisible)
10041004
{
1005-
ForceVisible |= (bool)ParentItem->text(0).contains(Text, Qt::CaseInsensitive) | (bool)ParentItem->text(1).contains(Text, Qt::CaseInsensitive);
1005+
ForceVisible |= ParentItem->text(0).contains(Text, Qt::CaseInsensitive) || ParentItem->text(1).contains(Text, Qt::CaseInsensitive);
10061006
bool Visible = ForceVisible;
10071007

10081008
for (int ChildIdx = 0; ChildIdx < ParentItem->childCount(); ChildIdx++)

0 commit comments

Comments
 (0)