~ubuntu-branches/debian/stretch/kdesvn/stretch

« back to all changes in this revision

Viewing changes to src/helpers/stl2qt.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2005-12-19 21:47:39 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051219214739-9w63kn8qsyqcr0uh
Tags: 0.7.1-1
* New upstream release.
* Tightened build dependency on kdelibs4-dev because of the C++ allocator
  change.
* Tightened build dependency on libsvn0-dev as kdesvn now requires subversion
  1.2 or higher.
* Split up package into core application kdesvn and KIO plugin package
  kdesvn-kio-plugins.
* Updated menu icon.
* Use Debian libtool and regenerate the autotools files. Closes: #343952
  + Add build dependencies to automake1.9, autoconf and libtool.
  + Patch makefile_am.diff from Aurelien Jarno <aurel32@debian.org> adds
    missing libraries needed for linking. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright (C) 2005 by Rajko Albrecht                                  *
3
 
 *   ral@alwins-world.de                                                   *
4
 
 *                                                                         *
5
 
 *   This program is free software; you can redistribute it and/or modify  *
6
 
 *   it under the terms of the GNU General Public License as published by  *
7
 
 *   the Free Software Foundation; either version 2 of the License, or     *
8
 
 *   (at your option) any later version.                                   *
9
 
 *                                                                         *
10
 
 *   This program is distributed in the hope that it will be useful,       *
11
 
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12
 
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13
 
 *   GNU General Public License for more details.                          *
14
 
 *                                                                         *
15
 
 *   You should have received a copy of the GNU General Public License     *
16
 
 *   along with this program; if not, write to the                         *
17
 
 *   Free Software Foundation, Inc.,                                       *
18
 
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
19
 
 ***************************************************************************/
20
 
 
21
 
#include "stl2qt.h"
22
 
 
23
 
namespace helpers {
24
 
stl2qt::stl2qt()
25
 
{
26
 
}
27
 
 
28
 
stl2qt::~stl2qt()
29
 
{
30
 
}
31
 
 
32
 
QString stl2qt::stl2qtstring_(const std::string&what)
33
 
{
34
 
    return QString::fromUtf8(what.c_str());
35
 
}
36
 
 
37
 
QString stl2qt::stl2qtstring_(const char*what)
38
 
{
39
 
    return what?QString::fromUtf8(what):QString("");
40
 
}
41
 
 
42
 
std::string stl2qt::qt2stlstring_(const QString&what)
43
 
{
44
 
    return std::string(what.isEmpty()?"":what.utf8());
45
 
}
46
 
 
47
 
}