aboutsummaryrefslogtreecommitdiffstats
path: root/lib/et/src/et_wx_contents_viewer.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2017-06-30 12:25:39 +0200
committerSiri Hansen <[email protected]>2017-09-15 17:07:49 +0200
commit91ddeccdf27bc5fb1252ebcd839d4d32529bee52 (patch)
treee87ee6bafc48e9affb5c6baee5333f86904a84fe /lib/et/src/et_wx_contents_viewer.erl
parent9848b6c8c1da15137f71b57c9db923c5e5162e82 (diff)
downloadotp-91ddeccdf27bc5fb1252ebcd839d4d32529bee52.tar.gz
otp-91ddeccdf27bc5fb1252ebcd839d4d32529bee52.tar.bz2
otp-91ddeccdf27bc5fb1252ebcd839d4d32529bee52.zip
et: Do not use deprecated functions in string(3)
Diffstat (limited to 'lib/et/src/et_wx_contents_viewer.erl')
-rw-r--r--lib/et/src/et_wx_contents_viewer.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/et/src/et_wx_contents_viewer.erl b/lib/et/src/et_wx_contents_viewer.erl
index 247dd4c7ba..da6cdec9b5 100644
--- a/lib/et/src/et_wx_contents_viewer.erl
+++ b/lib/et/src/et_wx_contents_viewer.erl
@@ -659,7 +659,7 @@ pad_string(Int, MinLen, Char, Dir) when is_integer(Int) ->
pad_string(Atom, MinLen, Char, Dir) when is_atom(Atom) ->
pad_string(atom_to_list(Atom), MinLen, Char, Dir);
pad_string(String, MinLen, Char, Dir) when is_integer(MinLen), MinLen >= 0 ->
- Len = length(String),
+ Len = string:length(String),
case {Len >= MinLen, Dir} of
{true, _} ->
String;