summaryrefslogtreecommitdiffhomepage
path: root/Magic2/MagicDoc.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-01-30 17:41:24 +0100
committerAki <please@ignore.pl>2022-01-30 17:41:24 +0100
commit51657e10769faa2617d546a06c42e4c62a19bb50 (patch)
tree688ad8b61ac02e50974684b9b7d3f886fb469e5f /Magic2/MagicDoc.cpp
parentdb987e23d5dd33a5db8764743facbb906ac22b0f (diff)
downloadstarshatter-51657e10769faa2617d546a06c42e4c62a19bb50.zip
starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.gz
starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.bz2
Removed trailing whitespace all over the place
Diffstat (limited to 'Magic2/MagicDoc.cpp')
-rw-r--r--Magic2/MagicDoc.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/Magic2/MagicDoc.cpp b/Magic2/MagicDoc.cpp
index f0c7929..d794aa2 100644
--- a/Magic2/MagicDoc.cpp
+++ b/Magic2/MagicDoc.cpp
@@ -107,7 +107,7 @@ void
MagicDoc::Exec(Command* command)
{
int nredo = commands.size() - nundo;
-
+
while (nredo) {
delete commands.removeIndex(commands.size()-1);
nredo--;
@@ -208,7 +208,7 @@ void MagicDoc::Dump(CDumpContext& dc) const
// +--------------------------------------------------------------------+
-BOOL MagicDoc::OnSaveDocument(LPCTSTR path_name)
+BOOL MagicDoc::OnSaveDocument(LPCTSTR path_name)
{
SetModifiedFlag(FALSE);
@@ -220,7 +220,7 @@ BOOL MagicDoc::OnSaveDocument(LPCTSTR path_name)
return TRUE;
}
-BOOL MagicDoc::OnOpenDocument(LPCTSTR path_name)
+BOOL MagicDoc::OnOpenDocument(LPCTSTR path_name)
{
FILE* fp = fopen(path_name, "rb");
if (!fp) {
@@ -464,7 +464,7 @@ int LoadBuffer(const char* filename, BYTE*& buf, bool null_terminate)
// +--------------------------------------------------------------------+
-void MagicDoc::DeleteContents()
+void MagicDoc::DeleteContents()
{
CDocument::DeleteContents();
InitCommandStack();
@@ -483,7 +483,7 @@ void MagicDoc::DeleteContents()
int LoadTexture(const char* fname, Bitmap*& bitmap, int type)
{
int result = 0;
-
+
if (!fname || !*fname)
return result;
@@ -586,7 +586,7 @@ int LoadAlpha(const char* name, Bitmap& bitmap, int type)
// first try to load from current directory:
bool loaded = false;
-
+
if (pcx_file)
loaded = pcx.Load(filename) == PCX_OK;
@@ -610,7 +610,7 @@ int LoadAlpha(const char* name, Bitmap& bitmap, int type)
}
-void MagicDoc::OnSurfaceOptimize()
+void MagicDoc::OnSurfaceOptimize()
{
if (solid && solid->GetModel()) {
solid->GetModel()->OptimizeMesh();
@@ -619,12 +619,12 @@ void MagicDoc::OnSurfaceOptimize()
}
}
-void MagicDoc::OnUpdateSurfaceOptimize(CCmdUI* pCmdUI)
+void MagicDoc::OnUpdateSurfaceOptimize(CCmdUI* pCmdUI)
{
pCmdUI->Enable(solid && solid->GetModel());
}
-void MagicDoc::OnSurfaceExplode()
+void MagicDoc::OnSurfaceExplode()
{
if (solid && solid->GetModel()) {
solid->GetModel()->ExplodeMesh();
@@ -633,7 +633,7 @@ void MagicDoc::OnSurfaceExplode()
}
}
-void MagicDoc::OnUpdateSurfaceExplode(CCmdUI* pCmdUI)
+void MagicDoc::OnUpdateSurfaceExplode(CCmdUI* pCmdUI)
{
pCmdUI->Enable(solid && solid->GetModel());
}