[ekiga/v4_0] Fix header inclusion
- From: Eugen Dedu <ededu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/v4_0] Fix header inclusion
- Date: Thu, 29 Nov 2012 10:35:28 +0000 (UTC)
commit bb85ed9c4da690d98a55c6f4f0cd2eb586ad61c3
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date: Thu Nov 29 11:31:54 2012 +0100
Fix header inclusion
A file in lib/ should not depend on a file in src/.
lib/gui/dxwindow.cpp | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/lib/gui/dxwindow.cpp b/lib/gui/dxwindow.cpp
index ad3d3dd..e2ed827 100644
--- a/lib/gui/dxwindow.cpp
+++ b/lib/gui/dxwindow.cpp
@@ -37,8 +37,7 @@
#include "dxwindow.h"
#include <iostream>
-
-#include "../../src/common.h"
+#include "ptlib.h"
#define PIP_RATIO_WIN 3
#define PIP_RATIO_FS 5
@@ -1036,13 +1035,9 @@ DXWindow::ErrorMessage()
NULL);
if (dwMsgLen) {
buffer [ strlen(buffer) - 2 ] = 0;
- g_snprintf (result, sizeof (result), "%s (%u)",
- buffer, (int) GetLastError ());
- }
- else {
- g_snprintf (result, sizeof (result), "%u",
- (int) GetLastError ());
- }
+ snprintf (result, sizeof (result), "%s (%u)", buffer, (int) GetLastError ());
+ } else
+ snprintf (result, sizeof (result), "%u", (int) GetLastError ());
return result;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]