0ad/source/tools/atlas/AtlasUI/General/AtlasClipboard.cpp
Ykkrosh 13f2e3ca0c Tried compiling with ICC9 on Linux, which raised various issues:
* Fixed some bugs with incorrect macro usage (SDL_BYTE_ORDER vs
SDL_BYTEORDER, {MSC,GCC}_VER vs {MSC,GCC}_VERSION, OS_WIN/OS_UNIX in
projects where they're not defined).
 * Removed some redundant declarations of g_Console.
 * Removed some unnecessary semicolons.
 * Removed some unused variables.
 * Added throw specification to operator new.

This was SVN commit r4698.
2006-12-16 01:01:15 +00:00

21 lines
384 B
C++

#include "stdafx.h"
#include "AtlasClipboard.h"
// TODO: Do this properly, using the native clipboard. (That probably
// requires AtObj to be serialisable, though... Maybe just use XML?)
static AtObj g_Clipboard;
bool AtlasClipboard::SetClipboard(AtObj& in)
{
g_Clipboard = in;
return true;
}
bool AtlasClipboard::GetClipboard(AtObj& out)
{
out = g_Clipboard;
return true;
}