Don't keep compiling/run if something failed.
[kdevelopdvcssupport.git] / plugins / teamwork / helpers.cpp
blob198eb4d60e52c0e7ca1b4aed5ec22f1b19320c78
1 /***************************************************************************
2 Copyright 2006 David Nolden <david.nolden.kdevelop@art-master.de>
3 ***************************************************************************/
5 /***************************************************************************
6 * *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 * *
12 ***************************************************************************/
14 #include "helpers.h"
15 #include "lib/network/networkfwd.h"
16 #include "lib/network/sessioninterface.h"
17 #include "lib/network/user.h"
19 Teamwork::UserPointer userFromSession( const Teamwork::SessionPointer& session ) {
20 if( !session ) return 0;
21 return session.unsafe() ->safeUser();
25 // kate: space-indent on; indent-width 2; tab-width 2; replace-tabs on