Skip to content

Commit

Permalink
Revert "fix build for latest boost, skip test on windows"
Browse files Browse the repository at this point in the history
This reverts commit 49e383f.

Signed-off-by: akarin <[email protected]>
  • Loading branch information
AkarinVS committed Feb 21, 2023
1 parent fe22032 commit 7e1cc63
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 13 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/gha-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: GitHubActions CI tests

on:
push:
branches: [master, dev, ci, mod]
branches: [master, dev, ci]
# pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -180,8 +180,6 @@ jobs:
MSBuild.exe Aegisub.vcxproj -p:Configuration=Release
- name: run tests
# latest boost broke the build for tests/vfr.cpp.
if: false
run: |
Set-Location build-dir
MSBuild.exe test.vcxproj -p:Configuration=Release
Expand Down
7 changes: 0 additions & 7 deletions libaegisub/include/libaegisub/lua/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <type_traits>

#include <boost/config.hpp>
#include <boost/flyweight.hpp>

#ifndef BOOST_NORETURN
#include <boost/exception/detail/attribute_noreturn.hpp>
Expand Down Expand Up @@ -78,12 +77,6 @@ void push_value(lua_State *L, std::vector<T> const& value) {
}
}

template<typename T>
inline void push_value(lua_State *L, boost::flyweight<T> const& value) {
const T& v = value;
push_value(L, v);
}

int exception_wrapper(lua_State *L, int (*func)(lua_State *L));
/// Wrap a function which may throw exceptions and make it trigger lua errors
/// whenever it throws
Expand Down
2 changes: 1 addition & 1 deletion src/auto4_lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ namespace {
int get_translation(lua_State *L)
{
wxString str(check_wxstring(L, 1));
push_value(L, (const char *)_(str).utf8_str());
push_value(L, _(str).utf8_str());
return 1;
}

Expand Down
2 changes: 1 addition & 1 deletion src/command/video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ static void save_snapshot(agi::Context *c, bool raw) {
// If where ever that is isn't defined, we can't save there
if ((basepath == "\\") || (basepath == "/")) {
// So save to the current user's home dir instead
basepath = (const char*)wxGetHomeDir().c_str();
basepath = wxGetHomeDir().c_str();
}
}
// Actual fixed (possibly relative) path, decode it
Expand Down
2 changes: 1 addition & 1 deletion src/dialog_attachments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void DialogAttachments::OnExtract(wxCommandEvent &) {

// Multiple or single?
if (listView->GetNextSelected(i) != -1)
path = (const char*)wxDirSelector(_("Select the path to save the files to:"), to_wx(OPT_GET("Path/Fonts Collector Destination")->GetString())).c_str();
path = wxDirSelector(_("Select the path to save the files to:"), to_wx(OPT_GET("Path/Fonts Collector Destination")->GetString())).c_str();
else {
path = SaveFileSelector(
_("Select the path to save the file to:"),
Expand Down

0 comments on commit 7e1cc63

Please sign in to comment.