summaryrefslogtreecommitdiffstats
path: root/examples/agent/main.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-12-09 17:02:13 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-12-09 17:02:13 +0900
commit855818127b02c367fb187e67b9bb9b229b916304 (patch)
treec353d9b96b0135baf7f7a553c59926f2e5866a31 /examples/agent/main.cpp
parent7d1585c071206dd8460ed624eff764de5464dde7 (diff)
downloadpolkit-tqt-855818127b02c367fb187e67b9bb9b229b916304.tar.gz
polkit-tqt-855818127b02c367fb187e67b9bb9b229b916304.zip
Converted agent example code.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/agent/main.cpp')
-rw-r--r--examples/agent/main.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/examples/agent/main.cpp b/examples/agent/main.cpp
index 8e61f7066..cf2406b57 100644
--- a/examples/agent/main.cpp
+++ b/examples/agent/main.cpp
@@ -1,3 +1,4 @@
+// This is an example not a library
/***************************************************************************
* Copyright (C) 2009 Jaroslav Reznik *
* *
@@ -17,14 +18,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
***************************************************************************/
-#include <TQApplication>
-
-#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1
-
#include "pkagentexample.h"
int main(int argc, char *argv[])
{
- PkAgentExample example(argc, argv);
- return example.exec();
+ PkAgentExample example(argc, argv);
+ return example.exec();
}