Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
3aff98e
preliminary cleanup for split_str_once refactor
Goober5000 Oct 16, 2025
785bd36
make clang-tidy happy
Goober5000 Mar 3, 2026
a56bded
convert debriefing editor to modeless; add focus_sexp(); fix bugs
Goober5000 Mar 21, 2026
5634100
improve SEXP syntax checking
Goober5000 Apr 9, 2026
66eb470
fix coerce_to_utf8
Goober5000 Apr 28, 2026
abc5e87
Merge pull request #7365 from Goober5000/fix/sexp_type_checking
Goober5000 Apr 29, 2026
f0ed5c8
Merge pull request #7407 from Goober5000/fix/coerce_to_utf8
Goober5000 Apr 29, 2026
7e74e35
Merge pull request #7258 from Goober5000/split_str_once_preliminary_c…
Goober5000 Apr 30, 2026
e270754
add documentation for issue 4148
Goober5000 Apr 30, 2026
4235e4f
small followup to 7327
Goober5000 Apr 30, 2026
6e5e342
fix asteroid field undefined behavior
Goober5000 Apr 30, 2026
29bb474
Merge pull request #7411 from Goober5000/fix/7327_followup
Goober5000 May 1, 2026
3a556d9
Merge pull request #7412 from Goober5000/fix/asteroids
Goober5000 May 1, 2026
37ecbe4
Gate correct insignias behind flag / version (#7406)
BMagnu May 1, 2026
683b533
Qtfred Upgrade checkbox dialog (#7405)
MjnMixael May 1, 2026
636390b
Fix assert for flag list and ship starts (#7415)
MjnMixael May 1, 2026
0e43b19
Fix Heap Alloction issues in QTFred (#7334)
TheForce172 May 1, 2026
2b48778
Merge pull request #7410 from Goober5000/documentation/4148
Goober5000 May 2, 2026
4416dfc
make sure we don't set modified during init (#7417)
MjnMixael May 2, 2026
1d63244
add escort to ship flags (#7404)
MjnMixael May 2, 2026
d8131ab
QtFRED help dialog and documentation (#7380)
MjnMixael May 3, 2026
09a848a
Refactor player-set-target SEXP (#7393)
LuytenFS May 3, 2026
0642dcc
fix a few bugs in model loading
Goober5000 May 4, 2026
2b6e203
assign sip->model_num from inside model_load, plus a few tweaks
Goober5000 May 5, 2026
811b412
Make showing 2D radar icons a toggle-able option (#7409)
MjnMixael May 5, 2026
9129a58
fix cmake warning
Goober5000 May 6, 2026
1b0e63d
Add animation support for particle spawning (#7416)
BMagnu May 7, 2026
4b157fe
Merge pull request #7424 from Goober5000/fix/cmake_toolchain
Goober5000 May 7, 2026
0e1e055
Merge pull request #7421 from Goober5000/fix/anchor_model
Goober5000 May 7, 2026
3f85d61
use std::move() for local variables that are copied but not reused (#…
Goober5000 May 7, 2026
fdef3ea
Share texture type names from model.h (#7395)
MjnMixael May 7, 2026
f4c76dc
fix FRED2 MFC linkage when building qtFRED
Goober5000 May 8, 2026
98aac12
fix unpause issue (#7427)
MjnMixael May 8, 2026
6885bdc
Merge pull request #7442 from Goober5000/7334_followup
Goober5000 May 8, 2026
165c4d3
Merge pull request #7307 from Goober5000/debriefing_modeless
Goober5000 May 8, 2026
4086db1
Fix randomrange init slowdown (#7444)
BMagnu May 8, 2026
f02c01a
fix gauges not respecting table flags (#7426)
MjnMixael May 8, 2026
9180ff3
icon closeup zoom and pos (#7398)
MjnMixael May 9, 2026
d6509d8
QtFRED Camera Class (#7408)
MjnMixael May 9, 2026
5f6309b
make prop dialog true direct edit (#7418)
MjnMixael May 9, 2026
76c00db
Add set-guard-range sexp (#7251)
MjnMixael May 11, 2026
2046f9b
Update ParticleEffect.h (#7446)
wookieejedi May 11, 2026
1a34123
fix qtfred heap corruption in FastDebug builds (#7450)
Goober5000 May 12, 2026
6c0d490
Qtfred error checker (#7389)
MjnMixael May 12, 2026
975ce27
QtFRED large ship collision group mission flag (#7425)
MjnMixael May 12, 2026
1cbfb34
add findWorld / findObject for objects (#7443)
BMagnu May 12, 2026
ef73e25
unlimited mission titles
Goober5000 May 8, 2026
ce28df4
Merge pull request #7448 from Goober5000/feature/unlimited_title
Goober5000 May 13, 2026
ddb6c2e
QtFRED Waypoint Dialog Upgrade (#7419)
MjnMixael May 13, 2026
9b57cc7
wing editor stylization pass (#7433)
MjnMixael May 13, 2026
e6d8835
Qtfred Ship editor stylization pass (#7434)
MjnMixael May 13, 2026
f8fa1e4
a bit of cleanup
Goober5000 May 14, 2026
246213a
first part of comm node fix
Goober5000 May 13, 2026
bed223c
second part of comm node fix
Goober5000 May 13, 2026
8f91617
clang
Goober5000 May 14, 2026
2c62cb2
ship alt class stylization pass (#7435)
MjnMixael May 14, 2026
05619eb
ship custom warp stylization pass (#7436)
MjnMixael May 14, 2026
17b0870
ship flags stylization pass (#7437)
MjnMixael May 14, 2026
3d43ddb
QtFred Ship goals stylization pass (#7438)
MjnMixael May 14, 2026
6ddc6c5
qtfred always generates sexps file (#7452)
MjnMixael May 14, 2026
20b55eb
TTS Speech rework (#7357)
Shivansps May 14, 2026
3455b0f
Merge pull request #7458 from Goober5000/cleanup/coverity_and_claude
Goober5000 May 14, 2026
c3b8922
address feedback
Goober5000 May 15, 2026
4741869
QtFRED Jump Node Dialog Upgrade (#7420)
MjnMixael May 15, 2026
b8a3c9c
QtFred Ship initial status stylization pass (#7439)
MjnMixael May 15, 2026
946d15c
ship special stats stylization pass (#7440)
MjnMixael May 15, 2026
0018f55
Fix edge case in switching from None AA to MSAA (#7454)
wookieejedi May 15, 2026
1b8a79c
two fixes for issue 6793
Goober5000 May 16, 2026
4bc45b3
Merge pull request #7459 from Goober5000/fix/comm_node
Goober5000 May 16, 2026
b4c5c7b
Qtfred ship weapons dialog (#7453)
MjnMixael May 16, 2026
9de7315
move waypoint and jump node to their own dropdown category (#7455)
MjnMixael May 16, 2026
a6dc9de
Merge pull request #7464 from Goober5000/fix_6793
Goober5000 May 17, 2026
15e7528
Expose new `Max Guard Range` to scripting (#7451)
wookieejedi May 18, 2026
c8ea9c6
Model surface particles (#7447)
BMagnu May 18, 2026
c8d4f37
Enable QTFRED Nightly
TheForce172 May 18, 2026
872c7bc
Fix Indent
TheForce172 May 18, 2026
3a75eeb
add test ability
TheForce172 May 18, 2026
b3ee879
Actually enable qtfred buidling
TheForce172 May 18, 2026
2fa159c
configure QTDIR environment variable
TheForce172 May 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
89 changes: 45 additions & 44 deletions .github/workflows/build-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ jobs:
env:
CONFIGURATION: ${{ matrix.configuration }}
COMPILER: gcc-9
ENABLE_QTFRED: OFF
ENABLE_QTFRED: ON
run: $GITHUB_WORKSPACE/ci/linux/configure_cmake.sh
- name: Compile
working-directory: ./build
env:
CONFIGURATION: ${{ matrix.configuration }}
run: |
LD_LIBRARY_PATH=$Qt5_DIR/lib:$LD_LIBRARY_PATH ninja -k 20 all
installRY_PATH=$Qt5_DIR/lib:$LD_LIBRARY_PATH ninja -k 20 all
- name: Run Tests
working-directory: ./build
env:
Expand All @@ -48,6 +48,7 @@ jobs:
- name: Generate AppImage
working-directory: ./build
env:
QTDIR: Qt5_DIR
CONFIGURATION: ${{ matrix.configuration }}
run: $GITHUB_WORKSPACE/ci/linux/generate_appimage.sh $GITHUB_WORKSPACE/build/install
- name: Upload build result
Expand Down Expand Up @@ -110,30 +111,30 @@ jobs:
name: Checkout
with:
submodules: true
# - name: Cache Qt
# id: cache-qt-win
# uses: actions/cache@v1
# with:
# path: ${{ github.workspace }}/../Qt
# key: ${{ runner.os }}-${{ matrix.arch }}-QtCache-${{ env.QT_VERSION }}
# - name: Install Qt (32 bit)
# uses: jurplel/install-qt-action@v2
# if: ${{ matrix.arch == 'Win32' }}
# with:
# version: ${{ env.QT_VERSION }}
# dir: ${{ github.workspace }}/..
# arch: win32_msvc2017
# cached: ${{ steps.cache-qt-win.outputs.cache-hit }}
# aqtversion: ==0.8
# - name: Install Qt (64 bit)
# uses: jurplel/install-qt-action@v2
# if: ${{ matrix.arch == 'x64' }}
# with:
# version: ${{ env.QT_VERSION }}
# dir: ${{ github.workspace }}/..
# arch: win64_msvc2017_64
# cached: ${{ steps.cache-qt-win.outputs.cache-hit }}
# aqtversion: ==0.8
- name: Cache Qt
id: cache-qt-win
uses: actions/cache@v1
with:
path: ${{ github.workspace }}/../Qt
key: ${{ runner.os }}-${{ matrix.arch }}-QtCache-${{ env.QT_VERSION }}
- name: Install Qt (32 bit)
uses: jurplel/install-qt-action@v2
if: ${{ matrix.arch == 'Win32' }}
with:
version: ${{ env.QT_VERSION }}
dir: ${{ github.workspace }}/..
arch: win32_msvc2017
cached: ${{ steps.cache-qt-win.outputs.cache-hit }}
aqtversion: ==0.8
- name: Install Qt (64 bit)
uses: jurplel/install-qt-action@v2
if: ${{ matrix.arch == 'x64' }}
with:
version: ${{ env.QT_VERSION }}
dir: ${{ github.workspace }}/..
arch: win64_msvc2017_64
cached: ${{ steps.cache-qt-win.outputs.cache-hit }}
aqtversion: ==0.8
- name: Prepare Vulkan SDK
uses: humbletim/setup-vulkan-sdk@v1.2.1
with:
Expand All @@ -153,13 +154,13 @@ jobs:
if [ "$ARCHITECTURE" = "Win32" ]; then
cmake -DCMAKE_INSTALL_PREFIX="$(pwd)/install" -DFSO_USE_SPEECH="ON" \
-DFSO_USE_VOICEREC="ON" -DFORCED_SIMD_INSTRUCTIONS="$SIMD" \
-DFSO_BUILD_QTFRED=OFF -DFSO_BUILD_TESTS=ON \
-DFSO_BUILD_QTFRED=ON -DFSO_BUILD_TESTS=ON \
-DFSO_INSTALL_DEBUG_FILES="ON" -DFSO_BUILD_WITH_VULKAN="OFF" -A "$ARCHITECTURE" \
-G "Visual Studio 17 2022" -T "v143" -DCMAKE_BUILD_TYPE=$CONFIGURATION ..
else
cmake -DCMAKE_INSTALL_PREFIX="$(pwd)/install" -DFSO_USE_SPEECH="ON" \
-DFSO_USE_VOICEREC="ON" -DFORCED_SIMD_INSTRUCTIONS="$SIMD" \
-DFSO_BUILD_QTFRED=OFF -DFSO_BUILD_TESTS=ON \
-DFSO_BUILD_QTFRED=ON -DFSO_BUILD_TESTS=ON \
-DFSO_INSTALL_DEBUG_FILES="ON" -A "$ARCHITECTURE" \
-G "Visual Studio 17 2022" -T "v143" -DCMAKE_BUILD_TYPE=$CONFIGURATION ..
fi
Expand Down Expand Up @@ -234,21 +235,21 @@ jobs:
name: Mac
runs-on: macos-latest
steps:
# - name: Cache Qt
# id: cache-qt-mac
# uses: actions/cache@v1
# with:
# path: ${{ github.workspace }}/../Qt
# key: ${{ runner.os }}-QtCache-${{ env.QT_VERSION }}
# - name: Install Qt
# uses: jurplel/install-qt-action@v2
# with:
# version: ${{ env.QT_VERSION }}
# dir: ${{ github.workspace }}/..
# cached: ${{ steps.cache-qt-mac.outputs.cache-hit }}
# setup-python: 'false'
# aqtversion: ==1.1.3
# py7zrversion: '==0.19.*'
- name: Cache Qt
id: cache-qt-mac
uses: actions/cache@v1
with:
path: ${{ github.workspace }}/../Qt
key: ${{ runner.os }}-QtCache-${{ env.QT_VERSION }}
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: ${{ env.QT_VERSION }}
dir: ${{ github.workspace }}/..
cached: ${{ steps.cache-qt-mac.outputs.cache-hit }}
setup-python: 'false'
aqtversion: ==1.1.3
py7zrversion: '==0.19.*'
- uses: actions/checkout@v1
name: Checkout
with:
Expand All @@ -272,7 +273,7 @@ jobs:
COMPILER: ${{ matrix.compiler }}
ARCHITECTURE: ${{ matrix.arch }}
JOB_CMAKE_OPTIONS: ${{ matrix.cmake_options }}
ENABLE_QTFRED: OFF
ENABLE_QTFRED: ON
run: $GITHUB_WORKSPACE/ci/linux/configure_cmake.sh
- name: Compile
working-directory: ./build
Expand Down
87 changes: 44 additions & 43 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
env:
CONFIGURATION: ${{ matrix.configuration }}
COMPILER: gcc-9
ENABLE_QTFRED: OFF
ENABLE_QTFRED: ON
run: $GITHUB_WORKSPACE/ci/linux/configure_cmake.sh
- name: Compile
working-directory: ./build
Expand All @@ -48,6 +48,7 @@ jobs:
- name: Generate AppImage
working-directory: ./build
env:
QTDIR: Qt5_DIR
CONFIGURATION: ${{ matrix.configuration }}
run: $GITHUB_WORKSPACE/ci/linux/generate_appimage.sh $GITHUB_WORKSPACE/build/install
- name: Upload build result
Expand Down Expand Up @@ -108,30 +109,30 @@ jobs:
[[ "${{ github.ref }}" =~ ^refs\/heads\/test\/(.*)$ ]]
# Override the revision string so that the builds are named correctly
echo "set(FSO_VERSION_REVISION_STR ${BASH_REMATCH[1]})" > "version_override.cmake"
# - name: Cache Qt
# id: cache-qt-win
# uses: actions/cache@v1
# with:
# path: ${{ github.workspace }}/../Qt
# key: ${{ runner.os }}-${{ matrix.arch }}-QtCache-${{ env.QT_VERSION }}
# - name: Install Qt (32 bit)
# uses: jurplel/install-qt-action@v2
# if: ${{ matrix.arch == 'Win32' }}
# with:
# version: ${{ env.QT_VERSION }}
# dir: ${{ github.workspace }}/..
# arch: win32_msvc2017
# cached: ${{ steps.cache-qt-win.outputs.cache-hit }}
# aqtversion: ==0.8
# - name: Install Qt (64 bit)
# uses: jurplel/install-qt-action@v2
# if: ${{ matrix.arch == 'x64' }}
# with:
# version: ${{ env.QT_VERSION }}
# dir: ${{ github.workspace }}/..
# arch: win64_msvc2017_64
# cached: ${{ steps.cache-qt-win.outputs.cache-hit }}
# aqtversion: ==0.8
- name: Cache Qt
id: cache-qt-win
uses: actions/cache@v1
with:
path: ${{ github.workspace }}/../Qt
key: ${{ runner.os }}-${{ matrix.arch }}-QtCache-${{ env.QT_VERSION }}
- name: Install Qt (32 bit)
uses: jurplel/install-qt-action@v2
if: ${{ matrix.arch == 'Win32' }}
with:
version: ${{ env.QT_VERSION }}
dir: ${{ github.workspace }}/..
arch: win32_msvc2017
cached: ${{ steps.cache-qt-win.outputs.cache-hit }}
aqtversion: ==0.8
- name: Install Qt (64 bit)
uses: jurplel/install-qt-action@v2
if: ${{ matrix.arch == 'x64' }}
with:
version: ${{ env.QT_VERSION }}
dir: ${{ github.workspace }}/..
arch: win64_msvc2017_64
cached: ${{ steps.cache-qt-win.outputs.cache-hit }}
aqtversion: ==0.8
- name: Prepare Vulkan SDK
uses: humbletim/setup-vulkan-sdk@v1.2.1
with:
Expand All @@ -151,13 +152,13 @@ jobs:
if [ "$ARCHITECTURE" = "Win32" ]; then
cmake -DCMAKE_INSTALL_PREFIX="$(pwd)/install" -DFSO_USE_SPEECH="ON" \
-DFSO_USE_VOICEREC="ON" -DFORCED_SIMD_INSTRUCTIONS="$SIMD" \
-DFSO_BUILD_QTFRED=OFF -DFSO_BUILD_TESTS=ON \
-DFSO_BUILD_QTFRED=ON -DFSO_BUILD_TESTS=ON \
-DFSO_INSTALL_DEBUG_FILES="ON" -DFSO_BUILD_WITH_VULKAN="OFF" -A "$ARCHITECTURE" \
-G "Visual Studio 17 2022" -T "v143" -DCMAKE_BUILD_TYPE=$CONFIGURATION ..
else
cmake -DCMAKE_INSTALL_PREFIX="$(pwd)/install" -DFSO_USE_SPEECH="ON" \
-DFSO_USE_VOICEREC="ON" -DFORCED_SIMD_INSTRUCTIONS="$SIMD" \
-DFSO_BUILD_QTFRED=OFF -DFSO_BUILD_TESTS=ON \
-DFSO_BUILD_QTFRED=ON -DFSO_BUILD_TESTS=ON \
-DFSO_INSTALL_DEBUG_FILES="ON" -A "$ARCHITECTURE" \
-G "Visual Studio 17 2022" -T "v143" -DCMAKE_BUILD_TYPE=$CONFIGURATION ..
fi
Expand Down Expand Up @@ -233,21 +234,21 @@ jobs:
name: Mac
runs-on: macos-latest
steps:
# - name: Cache Qt
# id: cache-qt-mac
# uses: actions/cache@v1
# with:
# path: ${{ github.workspace }}/../Qt
# key: ${{ runner.os }}-QtCache-${{ env.QT_VERSION }}
# - name: Install Qt
# uses: jurplel/install-qt-action@v2
# with:
# version: ${{ env.QT_VERSION }}
# dir: ${{ github.workspace }}/..
# cached: ${{ steps.cache-qt-mac.outputs.cache-hit }}
# setup-python: 'false'
# aqtversion: ==1.1.3
# py7zrversion: '==0.19.*'
- name: Cache Qt
id: cache-qt-mac
uses: actions/cache@v1
with:
path: ${{ github.workspace }}/../Qt
key: ${{ runner.os }}-QtCache-${{ env.QT_VERSION }}
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: ${{ env.QT_VERSION }}
dir: ${{ github.workspace }}/..
cached: ${{ steps.cache-qt-mac.outputs.cache-hit }}
setup-python: 'false'
aqtversion: ==1.1.3
py7zrversion: '==0.19.*'
- uses: actions/checkout@v1
name: Checkout
with:
Expand All @@ -270,7 +271,7 @@ jobs:
CONFIGURATION: ${{ matrix.configuration }}
COMPILER: ${{ matrix.compiler }}
ARCHITECTURE: ${{ matrix.arch }}
ENABLE_QTFRED: OFF
ENABLE_QTFRED: ON
run: $GITHUB_WORKSPACE/ci/linux/configure_cmake.sh
- name: Compile
working-directory: ./build
Expand Down
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ IF(RESET_INSTALL_PREFIX)
ENDIF(NOT $ENV{FS2PATH} STREQUAL "")
ENDIF(RESET_INSTALL_PREFIX)

IF(WIN32 OR APPLE)
IF(WIN32 OR APPLE OR CMAKE_SYSTEM_NAME STREQUAL "Linux")
OPTION(FSO_USE_SPEECH "Use text-to-speach libraries" ON)
ENDIF(WIN32 OR APPLE)
ELSE()
OPTION(FSO_USE_SPEECH "Use text-to-speach libraries" OFF)
ENDIF()

IF (WIN32)
OPTION(FSO_USE_VOICEREC "Enable voice recognition support" ON)
Expand Down Expand Up @@ -227,9 +229,7 @@ include(package)
include(doxygen)

# Print used options to log
IF(WIN32 OR APPLE)
message(STATUS "Using text to speech: ${FSO_USE_SPEECH}")
ENDIF()
message(STATUS "Using text to speech: ${FSO_USE_SPEECH}")
IF (WIN32)
message(STATUS "Using voice recogition: ${FSO_USE_VOICEREC}")
message(STATUS "Building FRED2: ${FSO_BUILD_FRED2}")
Expand Down
2 changes: 2 additions & 0 deletions cmake/finder/FindSpeech.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ if (WIN32)
endif()
elseif(APPLE)
# it should just work
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
# uses speech-dispatcher with dlopen
else()
message(SEND_ERROR "Text to Speech is not supported on this platform!")
endif()
Expand Down
8 changes: 4 additions & 4 deletions cmake/toolchain-msvc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,13 @@ if (MSVC_RELEASE_DEBUGGING)
endif()
endif()

IF(MSVC_USE_RUNTIME_DLL)
# This should be kept in sync with the corresponding IF() in fred2/CMakeLists.txt
IF(MSVC_USE_RUNTIME_DLL OR FSO_BUILD_QTFRED)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<NOT:$<CONFIG:Release>>:Debug>DLL")
add_compile_definitions(_AFXDLL)
ELSE(MSVC_USE_RUNTIME_DLL)
ELSE()
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<NOT:$<CONFIG:Release>>:Debug>")
ENDIF(MSVC_USE_RUNTIME_DLL)
ENDIF()

# Debug
set(CMAKE_C_FLAGS_DEBUG "/W4 /Gy /Zi /Od /RTC1 /Gd /Oy-")
Expand Down Expand Up @@ -113,7 +114,6 @@ if(IS_X86)

endif()

add_compile_definitions("$<$<CONFIG:FastDebug>:_ITERATOR_DEBUG_LEVEL=0>")
target_compile_definitions(compiler INTERFACE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _SECURE_SCL=0 NOMINMAX _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING)

if (FSO_FATAL_WARNINGS)
Expand Down
2 changes: 1 addition & 1 deletion code/actions/BuiltinActionDefinition.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class BuiltinActionDefinition : public ActionDefinition {
// This should have been caught earlier
Assertion(paramIter != parameterExpressions.cend(), "Could not find built-in parameter!");

return std::unique_ptr<Action>(new TAction(paramIter->second.template asTyped<ActionValueType>()));
return std::make_unique<TAction>(paramIter->second.template asTyped<ActionValueType>());
}
};

Expand Down
4 changes: 2 additions & 2 deletions code/actions/expression/ActionExpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ActionExpression ActionExpression::parseFromTable(ValueType expectedReturnType,

stuff_string(expressionText, F_NAME);

ExpressionParser parser(expressionText);
ExpressionParser parser(std::move(expressionText));

auto expression = parser.parse(context);

Expand All @@ -45,7 +45,7 @@ ActionExpression ActionExpression::parseFromTable(ValueType expectedReturnType,
}

// Everything is valid
return ActionExpression(expression);
return ActionExpression(std::move(expression));
}

Value ActionExpression::execute(const ProgramVariables& variables) const
Expand Down
2 changes: 1 addition & 1 deletion code/actions/expression/ProgramVariables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace expression {

ProgramVariablesDefinition& ProgramVariablesDefinition::addScope(const SCP_string& name)
{
auto scope = std::unique_ptr<ProgramVariablesDefinition>(new ProgramVariablesDefinition());
auto scope = std::make_unique<ProgramVariablesDefinition>();

auto scopePtr = scope.get();

Expand Down
2 changes: 1 addition & 1 deletion code/actions/types/MoveToSubmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ ActionResult MoveToSubmodel::execute(ProgramLocals& locals) const

std::unique_ptr<Action> MoveToSubmodel::clone() const
{
return std::unique_ptr<Action>(new MoveToSubmodel(*this));
return std::make_unique<MoveToSubmodel>(*this);
}

} // namespace types
Expand Down
4 changes: 2 additions & 2 deletions code/actions/types/ParticleEffectAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ ActionResult ParticleEffectAction::execute(ProgramLocals& locals) const
matrix orientation;
vm_vector_2_matrix_norm(&orientation, &direction); // direction is normalized in SetDirectionAction::execute

source->setHost(make_unique<EffectHostObject>(locals.host.objp(), local_pos, orientation, true));
source->setHost(std::make_unique<EffectHostObject>(locals.host.objp(), local_pos, orientation, true));
source->finishCreation();

return ActionResult::Finished;
}

std::unique_ptr<Action> ParticleEffectAction::clone() const
{
return std::unique_ptr<Action>(new ParticleEffectAction(*this));
return std::make_unique<ParticleEffectAction>(*this);
}

} // namespace types
Expand Down
Loading
Loading