Skip to content

Commit b65547e

Browse files
committed
Merge branch 'master' into LoadBalancingExperiments2
2 parents 455f741 + eeac334 commit b65547e

File tree

6 files changed

+6
-9
lines changed

6 files changed

+6
-9
lines changed

include/vsg/core/Export.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1616
# pragma warning(disable : 4251)
1717
#endif
1818

19-
#if defined(WIN32)
19+
#if defined(_WIN32)
2020
# if defined(vsg_EXPORTS)
2121
# define VSG_DECLSPEC __declspec(dllexport)
2222
# elif defined(VSG_SHARED_LIBRARY)

include/vsg/core/IntrusiveAllocator.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ namespace vsg
106106

107107
Element() = default;
108108
Element(const Element&) = default;
109+
Element& operator=(const Element&) = default;
109110
};
110111

111112
struct FreeList

include/vsg/platform/win32/Win32_Window.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ namespace vsgWin32
4141
uint16_t modifierMask = 0;
4242

4343
// see https://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#keystroke-message-flags
44-
WORD vkCode = LOWORD(wParam); // virtual-key code
4544
WORD keyFlags = HIWORD(lParam);
4645
WORD scanCode = LOBYTE(keyFlags); // scan code
4746
BOOL isExtendedKey = (keyFlags & KF_EXTENDED) == KF_EXTENDED; // extended-key flag, 1 if scancode has 0xE0 prefix

include/vsg/vk/State.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1919
#include <vsg/vk/CommandBuffer.h>
2020

2121
#include <array>
22-
#include <map>
2322
#include <stack>
2423

2524
namespace vsg
@@ -33,7 +32,8 @@ namespace vsg
3332
class StateStack
3433
{
3534
public:
36-
StateStack() {}
35+
StateStack() = default;
36+
StateStack(const StateStack& rhs) = default;
3737

3838
using Stack = std::array<const T*, STATESTACK_SIZE>;
3939
Stack stack;

src/vsg/io/FileSystem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1717

1818
#include <cstdio>
1919

20-
#if defined(WIN32) && !defined(__CYGWIN__)
20+
#if defined(_WIN32) && !defined(__CYGWIN__)
2121
# include <cstdlib>
2222
# include <direct.h>
2323
# include <io.h>
@@ -223,7 +223,7 @@ Path vsg::executableFilePath()
223223
{
224224
Path path;
225225

226-
#if defined(WIN32)
226+
#if defined(_WIN32)
227227
TCHAR buf[PATH_MAX + 1];
228228
DWORD result = GetModuleFileName(NULL, buf, static_cast<DWORD>(std::size(buf) - 1));
229229
if (result && result < std::size(buf))

src/vsg/utils/PolytopeIntersector.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ namespace vsg
7878
{
7979
size_t numNegativeDistances = 0;
8080
size_t numPositiveDistances = 0;
81-
size_t numZeroDistances = 0;
8281
processedDistances.resize(0);
8382
for (const auto& v : processedVertices)
8483
{
@@ -88,8 +87,6 @@ namespace vsg
8887
++numNegativeDistances;
8988
else if (d > 0.0)
9089
++numPositiveDistances;
91-
else
92-
++numZeroDistances;
9390
}
9491

9592
if (numNegativeDistances > 0)

0 commit comments

Comments
 (0)