[med-svn] [aghermann] 08/23: use sasprintf where appropriate
andrei zavada
hmmr-guest at alioth.debian.org
Sat Aug 17 18:05:40 UTC 2013
This is an automated email from the git hooks/post-receive script.
hmmr-guest pushed a commit to branch master
in repository aghermann.
commit eeb235a8df8b4916b14415ef0a07a3cce0c3648d
Author: Andrei Zavada <johnhommer at gmail.com>
Date: Sun Aug 4 01:02:24 2013 +0300
use sasprintf where appropriate
---
src/aghermann/ui/mw/loadsave.cc | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/aghermann/ui/mw/loadsave.cc b/src/aghermann/ui/mw/loadsave.cc
index 7a7e3d2..4cea919 100644
--- a/src/aghermann/ui/mw/loadsave.cc
+++ b/src/aghermann/ui/mw/loadsave.cc
@@ -157,11 +157,8 @@ save_settings()
{
libconfig::Config conf;
- _geometry_placeholder.assign(
- to_string( geometry.w) + 'x'
- + to_string( geometry.h) + '+'
- + to_string( geometry.x) + '+'
- + to_string( geometry.y));
+ _geometry_placeholder = agh::str::sasprintf(
+ "%dx%d+%d+%d", geometry.w, geometry.h, geometry.x, geometry.y);
_aghtt_placeholder = AghT();
_aghdd_placeholder = AghD();
--
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git
More information about the debian-med-commit
mailing list